Commit 242f8d63 by BellCodeEditor

save project

parent c8ed8764
Showing with 14 additions and 5 deletions
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
file1=open()
file1.write('小兰:12本\n')
file1.write('小兰:12本\n')
file1.write('小兰:12本\n')
new_date:
with open()
for date in file1:
if '小强10本'in date:
date=date.replace('小强10本','小强11本')
if '小兰12本'in date:
date=date.replace('小兰12本','小兰14本')
new_date+=date
with open(r'')as file1
file1.with(new_date)
with open(r'')as file1
a=file1.read
print(a)
\ 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