Is there a way to switch value variables in Class without using temp variable in Python?

后端 未结 0 1895
暗喜
暗喜 2020-12-07 01:20

I\'m trying to switch value of the variables in my class below without using temp variable. I have tried as following.

class Person:
    apples = 0
    ideas          


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