How Python invokes its own written package __python

Source: Internet
Author: User
As Little white has just touched the language of Python, Because you don't know how to import your own. py file has been plagued for a long time, and finally found a way to import the SYS package under the Python interface, and then put the module that you wrote into a folder, using Sys.path.append (' The exact location of the package ') You can then refer to the functions within the. py file, and I find that once the package is imported, you modify the code in the module, such as adding a function, the added function will not be found in the module

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.