目录结构如下: 一、模块的使用 s2使用s1的add函数 s1.py def add(a, b): return a + b 方式一: s2.py from s1 import add print(add(1,