📜  python 从 py 文件导入列表 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:19.287000             🧑  作者: Mango

代码示例1
# In first .py file
mylist = ['this', 'that', 'theother']

# In second file
from variables import mylist