摘要: 官方推荐的一种写法: class SexType(objects): MALE = 'M' FEMALE = 'F' UNKNOWN = 'N/A' CHOICES = ( (MALE, '男'), (FEMALE, '女'), (UNKNOWN, u'未知'), ) class User(mode 阅读全文
posted @ 2022-11-03 09:41 公众号海哥python 阅读(241) 评论(0) 推荐(0) 编辑