- 博客(1)
- 收藏
- 关注
原创 local variable ‘xxx‘ referenced before assignment
我在初步使用的时候,是这样写的 def main(): global l l = '' def deal(a:str): l = l + a deal("77") deal("88") print(l) main() 于是报错 --------------------------------------------------------------------------- UnboundLocalError
2020-07-13 09:56:00 280
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人