Loading

摘要: ```python # 验证中文姓名 if not re.match(r'^[\u4e00-\u9fa5]{2,6}$',body["name"]): raise Exception("请输入正确的中文姓名") # 验证身份证号 if not re.match(r'(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)|(^\d{6}(18|19|20)\... 阅读全文
posted @ 2019-09-23 11:41 sablier 阅读(245) 评论(0) 推荐(0) 编辑