python default dict argument is getting cached across function calls

后端 未结 0 555
太阳男子
太阳男子 2020-12-20 06:38

I\'m coming from a js world and not able to wrap this minor quirk in my head. Consider this simple python program:

lib.py

def test(i,          


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