Commit 878582ac by BellCodeEditor

save project

parent a1884fbb
Showing with 7 additions and 4 deletions
#"C:\Users\Windows 10\Desktop\111.txt" new_data=''
file = open(r"C:\Users\Windows 10\Desktop\111.txt,"w",encoding="utf-8") with open(r"C:\Users\Windows 10\Desktop\111.txt,"w",encoding="utf-8")as filel:
file.write("小兰,12",‘、"小丽,11",李文,9本",张伟,") for data in file1
\ No newline at end of file if '小强:10本' in data
data=data.replace('小强:10本','小强:11本')
new_data +=data
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