摘要: 1 def is_valid(a): 2 if len(a) == 18: 3 if a[-1] == 'Y': 4 return False 5 else: 6 return True 7 else: 8 return False 9 10 11 with open('data3_id.txt', 阅读全文