Python模块相关

#当前模块为主函数时,执行if后语句
if __name__ == '__main__'

Python的搜索路径

import sys
sys.path

添加搜索路径

sys.path.append(pah_to_location)

 

posted @ 2017-11-13 11:43  hotfeng  阅读(123)  评论(0编辑  收藏  举报