Commit 6b003442 by BellCodeEditor

save project

parent 681efa44
Showing with 6 additions and 3 deletions
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
#file_1=open(r'F:\TNTUIT3346\gzj.txt','w',encoding='utf-8') #file_1=open(r'F:\TNTUIT3346\gzj.txt','w',encoding='utf-8')
#file_1.write('李文:9本\n') #file_1. write('李文:9本\n')
#file_1.write('张伟:16本\n') #file_1.write('张伟:16本\n')
#file_1.close() #file_1.close()
now_dand =""
while open(r'F:\TNTUIT3346\gzj.txt','w',encoding='utf-8') as file_1: while open(r'F:\TNTUIT3346\gzj.txt','w',encoding='utf-8') as file_1:
for dand in file_1: for dand in file_1:
if 'gyfdtcdt123456789999999' in dand: if 'gyfdtcdt123456789999999' in dand:
dand= dand.write('gyfdtcdt123456789999999','gyfdtcdt12343456789999979')
now_dand+= dand
print("在") print("在")
print(dand) print(dand)
......
file1= file1=""
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment