摘要: choice参数 choices = ( (1,'male'), (2,'female'), (3,'others') ) gender = models.IntegerField(choices=choices) """ 1.如果我存的是上面元组中数字会怎么样 2.如果我存的数字不在元组范围内又会 阅读全文
posted @ 2021-06-07 12:13 黑影Poco 阅读(78) 评论(0) 推荐(0)