如何在变量已经定义之后更改它?
a = 15def test(): a = a +10 print ( a )test()
Traceback (most recent call last): File "test.py", line 7, in <module> test() File "test.py", line 4, in test a = a +10 UnboundLocalError: local variable 'a' referenced before assignment
慕盖茨4494581
函数式编程
ABOUTYOU
相关分类