###append append append 2021-9-12
#xml这个文件名是辛给的,
#txt这个文件名是我自己给的,
#其地址是一样的
#open_left_parenthese_path_right_parenthese__
path='E:\\___xml\\In_data_RK20210830082150_210801.xml'
lines=[line for line in open(path,encoding='utf-8')]
print(len(lines))
print(lines[2])
print(lines[3])
#1:100 29件
list_raw=(lines[4:-3])
list_append=[]
#list_append is append_ED from list_raw
print(len(list_append))
for i in range(1,30,1):
list_append.append(list_raw[101*i-1])
#len(list_append)
#29
print(len(list_append))
'''
with open(file='E:\\___xml\\箱码29_210801.txt',mode='w',encoding='utf-8') as f:
f.writelines(list_append)
'''