Commit c2f560c9 by BellCodeEditor

save project

parent 110910dd
Showing with 11 additions and 0 deletions
with open(r"C:\Users\Administrator\Desktop\test.txt","r",encoding='utf-8') as xjb:
for i in xjb:
if "小强:10本" in i
i=i.replace("小强:10本","小强:12本")
if "小兰:12本" in i:
i=i.replace("小兰:12本","小兰:14本")
new_i+=i
with open(r"C:\Users\Administrator\Desktop\test.txt","w",encoding='utf-8') as xjb:
xjb.write('i')
\ No newline at end of file
def new_imput():
total = []
while True:
try:
......
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