Is it possible when you call a class it returns a variable in Python?

后端 未结 0 1047
离开以前
离开以前 2021-01-23 05:56

I\'m looking to replace a variable in my program with a class object. However, I\'d like to avoid changing the syntax in my code. Let\'s say we have a class that looks like:

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