首页 新闻 赞助 找找看
2
回答数

回答被采纳 python关于局部变量的错误

def f1(): i=1 def f2(): i=i+1 类似这样的代码会报 UnboundLocalError: local variable 'i' referenced before assi