摘要: def detect_legal_phone(phone_number): if phone_number == None or phone_number == "": return False if len(phone_number) != 11: return False for c in phone_number: i... 阅读全文
posted @ 2019-03-26 18:18 Adamanter 阅读(3080) 评论(0) 推荐(0) 编辑
摘要: version > python3.5 tags = [{"value": "A", "key": "hello"},{"value": "A", "key": "world"}] b = OrderedDict() for item in tags: b.setdefault(item['valu 阅读全文
posted @ 2019-03-26 16:34 Adamanter 阅读(1155) 评论(0) 推荐(0) 编辑