Commit 0198cbae by BellCodeEditor

save project

parent c21c6e05
Showing with 2 additions and 2 deletions
...@@ -14,9 +14,9 @@ sss='' ...@@ -14,9 +14,9 @@ sss=''
with open(r'C:\Users\1\Desktop\吴思辰.txt','r',encoding='utf-8') as wsc: with open(r'C:\Users\1\Desktop\吴思辰.txt','r',encoding='utf-8') as wsc:
for i in wsc: for i in wsc:
if '小强:12本' in i: if '小强:12本' in i:
i.replace('小强:12本','小强:10本') i=i.replace('小强:12本','小强:10本')
if '小兰:12本' in i: if '小兰:12本' in i:
i.replace('小兰:12本','小兰:14本') i=i.replace('小兰:12本','小兰:14本')
sss+=i sss+=i
# a=wsc.read() # a=wsc.read()
# print(a) # 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