s21day19 python notes
I. Basic Object-Oriented Knowledge
1.1 Basic Format
# Definition class
class Class name:
def Method name(self,name):
print(name)
return 123
def Method name(self,name):
print(name)
return 123
def Method name(self,name):
print(name)
return 123
# Call methods in classes
# 1. Create ...
Posted by xkellix on Tue, 23 Apr 2019 16:57:36 -0700
Vue uses vue-quill-editor rich text summary (picture upload)
Vue-quill-editor is a rich text editor that we often use when we re-use the Vue framework. When we edit rich text, we often insert some pictures. The default way of vue-quill-editor is to convert pictures directly to base64 encoding. As a result, html fragments of rich text are very redundant. Usually, each server receives them. Th ...
Posted by ihenman on Tue, 23 Apr 2019 10:57:35 -0700
RecyclerView and CardView are used in conjunction with Android's new features
Introduction and Import of RecyelerView and CardView
RecyelerView and CardView are new controls in the 5.0, support-v7 package. The effect is as follows:
If you use it, you still need to import it. After all, it's not self-contained.
Modle's build.gradle adds:
dependencies {
compile 'com.android.support:recyclerview-v7:25.2.0'
...
Posted by kcgame on Mon, 22 Apr 2019 02:48:35 -0700
How to customize a title bar
In android, we will find that some of the software's head or bottom styles are unchanged. For example, the Apple mobile phone has no entity to return keys, it can only be realized with virtual keys. In android system, we can also achieve this function.
First of all, let's see how to achieve the simplest. First, we need to create a layout file ...
Posted by Agtronic on Sun, 21 Apr 2019 21:21:34 -0700
Bluetooth BlueTooth Low Energy (BLE)
BLE:(Bluetooth low energy) Bluetooth 4.0 device is also called BLE because of its low power consumption.
peripheral,central: peripheral and central device, the device that initiates the link is central (generally referred to as mobile phone), and the device that is linked is peripheral (sports bracelet)
service and characteristic: Ea ...
Posted by datona on Sun, 21 Apr 2019 15:42:33 -0700
SQL Injection Experiment
Information Security Experiment SQL Injection
I. Experimental Contents
1.Finish all six challenge on the website,or give the reason why the protection is unbreakable(need an experiment report ).
2(Extended work).Tell me why [input = a' or '1=1' or '1=1] doesn't work on the login website in your experiment report.
II. Experimental proces ...
Posted by juliston on Sun, 21 Apr 2019 00:00:34 -0700
maven multi-module and inheritance
maven has the function of multi-module aggregation, that is, it can reflect the relationship between modules by parent-child relationship, and associate each module.
Firstly, we introduce the module with inheritance dependency (multiple modules are not only associated with public modules, but also interdependent with each other).
Definitio ...
Posted by IwnfuM on Sat, 20 Apr 2019 23:48:35 -0700
C# Simple Implementation of Sending Mobile Short Messages
Write a program to send short messages from computers to mobile phones, and find three ways from the Internet: (1) Send short messages using web service interface, which can be sent using web service provided by sina, but need to register; (2) Send short messages using short message mao, which should be a common way of comparison, if you need t ...
Posted by malcome_thompson on Sat, 20 Apr 2019 20:51:33 -0700
XML Interpretation of Agisoft Photoscan/Mateshape Camera Parameters
XML Interpretation of Agisoft Photoscan/Mateshape Camera Parameters
Agisoft Photoscan / Mateshape is a high-quality three-dimensional modeling software using photos. It only needs a few photos to reconstruct the scene sparsely and densely. Photoscan reconstruction results can be derived in the form of point cloud (.ply) and ca ...
Posted by jrtaylor on Sat, 20 Apr 2019 19:36:34 -0700
Collapsing Toolbar Layout for Android Design Style Components
I really like the effect of folding toolbars in Material Design, which is the design used in Bilbili Android Client Video Details Page. In the second part of this article, we will learn about the use of Collapsing Toolbar Layout by simply emulating the implementation of Bilbili Video Details Page. The third part of the article introduces the ...
Posted by NICKKKKK on Sat, 20 Apr 2019 13:24:35 -0700