摘要: 1、不使用if __name__ == '__main__'代码。 1)第一段代码:直接新建两个python文件; (1)新建const.py PI = 3.14 def const(): print('const.py file of PI:', PI) const() 结果: const.py 阅读全文
posted @ 2020-01-13 16:48 东方无解 阅读(176) 评论(0) 推荐(0)