How to specify an attribute is >= 0 in class description

后端 未结 0 1927
悲&欢浪女
悲&欢浪女 2020-11-28 12:32

I\'d like to specify in my class that the attribute self.cash cannot be lower than zero or that it cannot be a float. Is this possible to mention with a type hi

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