How to use mutator/set method in Python to validate value before assigned to attribute?

前端 未结 0 1260
南方客
南方客 2020-11-21 04:26

I am trying to use the set method in python class to validate a value before it is assigned to an attribute in my main program. My code is below. For example, I want to use

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