摘要:
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... 阅读全文
摘要:
version > python3.5 tags = [{"value": "A", "key": "hello"},{"value": "A", "key": "world"}] b = OrderedDict() for item in tags: b.setdefault(item['valu 阅读全文