2017-10-5-python

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.