# 取出csv文件中多个字段值符合条件的
def csv_test():
# f = open('11.txt','r')
with open('22.txt','r') as f,open('2.txt', 'w') as f2:
for line in f.readlines():
a = line.strip()
a0 = a[0]
# if a.startswith(['a-z','A-Z']):
if a0.isalpha():
f2.write(a+'\n')
f.close()
网友评论