09 2021 档案

摘要:#利用反射,构造对象#反射取值可以不全取fileds中的键,只取部分 class UpDownModel(object): fields = { "id": "ID", "choice": "赞或踩", # 1,表示是赞;0,表示是踩 } def __init__(self, row_dict): 阅读全文
posted @ 2021-09-23 21:53 虚怀而若谷 阅读(38) 评论(0) 推荐(0)