模块的导入

#如何使用 from import
# 需要从一个文件中使用哪个名字,就把这个名字导入进来
# from my_module import name

# from import的过程中仍然执行了这个被导入的文件

# from my_module import read1
# import谁就只能用谁
# read1()
# from my_module import read2
# read2()
posted @ 2018-08-23 20:25  学习python1234  阅读(105)  评论(0编辑  收藏  举报
levels of contents