from abc import xxx 从abc的py文件导入一个具体的函数或者类 import abc 直接导入文件 a、b写在同一个文件目录下,a要使用b,直接import就可以了 相关文章: 2022-12-23 2022-02-09 2022-12-23 2021-12-29 2022-12-23 2022-12-23 2022-01-03