Pythonic way to change the value of something passed into a function, and have that change persist outside the function

前端 未结 0 844
刺人心
刺人心 2021-01-07 01:42

I sometimes want to pass an object to a function, and have that function change the value of the original object. If I was using C++ I would pass by reference. What

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