Commit 2270d28a by BellCodeEditor

auto save

parent 6b003442
Showing with 5 additions and 4 deletions
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
#file_1.write('张伟:16本\n') #file_1.write('张伟:16本\n')
#file_1.close() #file_1.close()
now_dand ="" now_dand =""
while open(r'F:\TNTUIT3346\gzj.txt','w',encoding='utf-8') as file_1: with open(r'F:\TNTUIT3346\gzj.txt','r',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') dand= dand.write('gyfdtcdt123456789999999','gyfdtcdt12343456789999979')
now_dand+= dand now_dand+= dand
print("在")
print(dand) with open(r'F:\TNTUIT3346\gzj.txt','w',encoding='utf-8') as file_1:
file_1.write(now_dand)
\ 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