###del del del delete delete delete2021-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))
list_raw=(lines[4:-3])
print(lines[2])
print(lines[3])
print(len(list_raw))
#
#list_del not pop up even
#list_delete not pop up even
#list_raw is the same as list_del or list_delete before del
for i in range(1,30,1)[::-1]:
del list_raw[101*i-1]
#len(lines)
#2936
#len(list_raw)#before delete list_raw 2929
#2929
#after delete list_raw become 2900
print(len(list_raw))
'''
with open(file='E:\\___xml\\袋码2900_210801.txt',mode='w',encoding='utf-8') as f:
f.writelines(list_raw)
'''