python 2.6.6
1 x = 1 2 3 if __name__=="__main__": 4 global x 5 x = 2
提示如题的警告
将global去掉后无此警告,不是在修改global变量前得加上“global”吗?
待解。。。