Python: modifying lists passed as function arguments

前端 未结 0 1080
抹茶落季
抹茶落季 2021-01-16 08:01

Can anyone please help me understand what\'s happening with the scoping in fun1() and fun2(), that leads to t += [2] being different from t = t+[2]? (naively, I expected fun

相关标签:
回答
  • 消灭零回复
提交回复
热议问题