Reading catalogues
1. What is XML? What are the characteristics?
2. Get tag properties
3. Get child Tags
4. Get label attribute values
5. Get data between labels pairs
6. Example
7. summary
Back to the top
1. What is XML? What are the characteristics?
xmlThat is,Extensible markup language,It can be used to mark up data and define data types. It is a source language that allows users to define their own markup language.
Example: del.xml
Structurally, it is much like the HTML hypertext markup language. But they are designed for different purposes. Hypertext markup languages are des...
Super good blog, summary is very comprehensive:
https://www.cnblogs.com/yangecnu/p/Introduce-Red-Black-Tree.html
The core idea of object-oriented programming is data abstraction, inheritance and dynamic binding。By data abstraction, the interface between classes can be separated from implementation.Using inheritance makes it easier to define new classes that are similar but not identical to other classes.Using dynamic binding, you can ignore the differences between similar classes to a certain extent and use their objects in a unified way.
The function of virtual function is to realize polymorphism. Polymorphism is to separate the interface from the implementation, using a common approach, but using di...
Error writing
require(['jquery','webuploader'], function (WebUploader) {
WebUploader.create({ picker:"#uploader"});
});
Correct writing
require(['webuploader'], function (WebUploader) {
WebUploader.create({ picker:"#uploader"});
});
It is to remove jQuery… Otherwise it will be WebUploader in function.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
print('{0},{1}'.format('zhangk', 32))
print('{},{},{}'.format('zhangk','boy',32))
print('{name},{sex},{age}'.format(age=32,sex='male',name='zhangk'))
# Format qualifier
# It has a rich "format qualifier" (grammar is {} with: number), for example:
# Filling and aligning
# Filling is often used with alignment.
# ^、<、>They are center, left alignment, right alignment, and back width.
# :The character that is filled with the back of the number can only be one charact...
1、Linear table (LIST)Forms of expression
Consisting of zero or more data elements.aggregate
Data elements in positionIn orderPermutation
The number of data elements isfiniteA
Data elementtypeMustidentical
2、Properties of linear tables
a0For the first element of a linear table, there is only one successor.
an-1 For the last element of a linear table, there is only one precursor.
Except a0And an-1 The other elements are precursors and post drives.
Direct support for itemized access and sequential access
3、Some common operations of linear tables
Create a linear table
...
command
Decompress (tar zxf compression package name)
Create file (MKDIR file name) permission file (sudo MKDIR file name)
Edit exit (vim/vi name – click I edit back – colon –qw– enter)
Delete (RM -rf name)
Shortcut key
Search in text (input /)
Jump to the last line (shift+g)
1.throwsIt means that the method throws an exception that needs to be handled by the caller. If it doesn’t want to be handled, it will always be thrown outward, and finally it will be handled by the jvm.
2.try catch It is to catch the exception thrown by others, and then deal with it in catch.
In general, the second case is better, so that the cause of the anomaly can be clearly seen and corrected.