Commit a18484ca by BellCodeEditor

save project

parent 8da2bc64
Showing with 9 additions and 6 deletions
......@@ -20,9 +20,12 @@ c=''
with open(r'D:\桌面\text.txt','r',encoding='utf-8') as b:
for a in b:
if '强:12本' in b:
b=b.replace('强:12本','强:11本')
a=a.replace('强:12本','强:11本')
if '兰:12本' in b:
b=b.replace('兰:12本','兰:14本')
c+=b
\ No newline at end of file
a=a.replace('兰:12本','兰:14本')
c+=a
with open(r'D:\桌面\text.txt','w',encoding='utf-8') as b:
b.write(c)
with open(r'D:\桌面\text.txt','r',encoding='utf-8') as b:
d=b.read()
print(d)
\ 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