阅读背景:

在主脚本中定义的全局变量不能由在不同模块中定义的函数访问

来源:互联网 

I want to define a few variables in my main python script and use them in a function which is defined in a separate module. Here is an example code. Lets say the main script is named main.py and the module is called mod.py.I want to define a few variables in my main pyt




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: