How can I emulate passing a variable by reference to an object in Python?

后端 未结 0 976
[愿得一人]
[愿得一人] 2020-11-21 09:25

I want to create a Python class that can:

  • Take a variable as an argument when instantiating
  • Store the value of the variable in an attribute
  • St
相关标签:
回答
  • 消灭零回复
提交回复
热议问题