先看两个脚本文件 father.py # -*- coding: utf-8 -*- from son import * # f1 -每行代码一个标识方便后面写执行流程使用 y = 10 # f2 print(x) # f3 son.py # -*- coding: utf-8 -*- from father import * # s1 x