Commit ebb959cb by BellCodeEditor

auto save

parent ef9b341c
Showing with 2 additions and 2 deletions
...@@ -13,8 +13,8 @@ with open(r"C:\Users\双师05\Desktop\捐赠.txt","r",encoding = 'utf-8') as fil ...@@ -13,8 +13,8 @@ with open(r"C:\Users\双师05\Desktop\捐赠.txt","r",encoding = 'utf-8') as fil
print('数据在文件中') print('数据在文件中')
data = data.replace('小兰:12本','小兰:13本') data = data.replace('小兰:12本','小兰:13本')
new_data += data new_data += data
file = open(r"C:\Users\双师05\Desktop\捐赠.txt","w",encoding = 'utf-8')
file.write(new_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