SYS module
SYS module is a module of communication between Python and interpreter
SYS.ARGV can be automatically formed as a list after you enter content in cmd, you can slice it in the program, verify the role of login.
The Sys.exit () program ends immediately, no matter what program is behind it.
Sys.path displays the path of the current search module
First search the path of the directory where the current script is located to find the required modules, not to go to the python environment variable to find
You can add a search path to the list of Sys.path in the following way, and ask him to go to another path to search for the module
Log error log configuration file, blog address
Http://www.cnblogs.com/yuanchenqi/articles/6766020.html
Change the log alarm level
Relevant explanations about the logger:
Logger can be seen as a log person, for every log recorded, he needs a set of rules, such as the format of the record (formatter), level, and so on, the rule is handler. By using Logger.addhandler (handler) to add multiple rules, you can have one logger record multiple logs.
Related Blog Links:
Http://www.cnblogs.com/anpengapple/p/5048123.html
Json
Import JSON
The list of objects that are serialized.
JSON, though it looks like a dictionary, is a string.
The quotation marks in the JSON standard format are double quotes.
This process is serialized and written to the file.
Deserialization:
Serialization string
Another way to apply dump
Write the content and, F is equivalent to adding a write operation
Another way to apply load
Equivalent to read and loads
Pickle
The Pickle module has the advantage of supporting all Python data types, with the disadvantage that Python is used only, as is the case with JSON.
Datatime
Object type
Python Learning Section 13th (Sys,logging,logger,json)