It's a long time to learn python, and it's really cool to work with Python scripts to solve problems.
Inserting a python py file is a common structure diagram:
if __name__ = = "__main__"
The function of this statement is mainly to distinguish whether the py file is the current execution of the file (is not you double-click on the execution of the file), because we know that the Py file can be run directly or can be called, directly executed when it is necessary to execute the PY file inside the portal main function, It is very flexible to be called without executing its own entrance main function.
Reference article:
http://blog.csdn.net/u011511601/article/details/53504355
Http://www.cnblogs.com/liqilei/archive/2010/08/11/1797715.html
--you get alone very well with everyone except animals and people
"Longxi Line"
Chen Tao
The oath sweep hun disregard body, 5,000 mink brocade lost Hu Yu.
Poor, uncertain river-side bones, still purdah dream people.
2017-10-5-python