Commit 3d3bc3c4 by BellCodeEditor

save project

parent a29ce8fa
Showing with 7 additions and 0 deletions
......@@ -16,5 +16,12 @@ with a=open('C:\\Users\\iamhere13\\Desktop\\test.txt','a',encoding='utf-8') as a
for d in a:
if '小和:12本\n' in d:
d+d.replace('小和:12','小和:13')
n_d+=d
with a=open('C:\\Users\\iamhere13\\Desktop\\test.txt','a',encoding='utf-8') as a:
a.write(n_d)
with a=open('C:\\Users\\iamhere13\\Desktop\\test.txt','a',encoding='utf-8') as a:
a=a.read()
print(a)
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