Python - UnboundLocalError: local variable referenced before assignment
转载自:点击至wordpress
报了这样一个错
咋办呢
我来告诉你,首先是该问题的简版代码:
#This is valid python 2.5 code
#My global variable:
USER_COUNT = 0
#functions:
def Main():
AddUser()
def AddUser():
print 'Ther
翻译
2012-06-29 19:36:15 ·
3276 阅读 ·
0 评论