|
|
1
3
这个
见 https://docs.python.org/3/reference/simple_stmts.html#the-global-statement . 至于在不运行函数的情况下引发错误的原因,是因为变量名绑定在 编译时间 ,所以根本不使用这个函数也没关系。见 https://docs.python.org/3/reference/executionmodel.html#resolution-of-names
然而,
一
|