Commit 973a061a by BellCodeEditor

auto save

parent 7e3a2ff3
Showing with 14 additions and 0 deletions
file=open(r'\Users\杨子航\Documents\lesson12-1\u.py','w',encoding='utf-8')
a=file.readlines()
print(a)
\ No newline at end of file
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' # 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
hh.wirte("呼呼呼呼")
hh.close()
for i in hh:
if"呼"in i:
data=i.replace("呼")
new_data=new_data+data
else:
print("不在")
hh.write(new_data)
\ 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