Common data formats text

Advanced Python

User login authentication module implements

Common data formats text

Unformatted

CSV format

In order, separated by commas, unable to represent complex data formats,

 

JSON

JavaScript Object Notation, JavaScript object representation, which is a lightweight data-interchange format for storing and transmitting data, may also be used for configuration files, text

JSON attribute values ​​may represent six different types of data:

1. The values, such as 123, and the like -3.14

2. The string must be enclosed in double quotes, such as "hello, China"

3. Boolean value, only two values ​​true and false (lowercase)

4 array, the use of a plurality of elements enclosed in parentheses, the interval between the different elements by commas, such as [1, "3.5", 3.14], etc.

The objects, use braces to enclose a plurality of key-value between different key-value pairs es, a colon between the key and value interval, key must be enclosed in double quotes, for example { "name": " Joe Smith "," age ": 33," sight ": 3.5," state ": true} etc.

6. empty type, i.e. null

 

 

xml

####

Empty set empty string like an empty list, it returns a value equal to False

N may be assumed to be direct if n: n to determine whether the empty

 

Spread

1. Call the web interface is essentially reptiles

2. The aggregate data juhe.cn can send text messages through this site, which is an interface to send text messages to call

3. Different functions can be the same variable name

This book is sure to look at the software engineering project manager 4. After working a year or two

5. How to make cute and software

1. powerful interface to be beautiful 2. Simple operation

6. A small amount of data, the data with a simple file operation on the line, simpler and more efficient

Large amounts of data, complex data, use a database

The pursuit of development efficiency (to write code simple) to use the database, the pursuit of operational efficiency on the use of file operations

The efficiency of C language program in the world, but its development efficiency lowest in the world

7. Only the persistent store file to the road, the internal database is to write data to a file, but we do not need to use the database attention to these. . . . The nature of the database is to do file operations

 

 

Guess you like

Origin www.cnblogs.com/yanruizhe/p/11407961.html