我有这个:
g_c = 0 class TestClass(): global g_c def run(self): for i in range(10): g_c = 1 print g_c t = TestClass() t.run() print g_c
我怎样才能真正修改我的全局变量g_c?
python
python ×1