from test_prokject import global_variables def get_global_variables(): print(global_variables.deco_trigger) # 其中 global_variables 为文件名,global_variables 文件内容为:deco_trigger = None
python 模块导入全局变量
原文:https://www.cnblogs.com/ronky/p/9831521.html