m1.py print('from m1.py') def func1(): from m2 import x print(x) y = 'm1' m2.py print('from m2.py') def func1(): from m1 import y print(y) x = 'm2' 来源:https://www.cnblogs.com/zhouxuchong/p/11564814.html 标签 m2