Commit 0b8d474e by BellCodeEditor

save project

parent 9468807b
Showing with 9 additions and 3 deletions
# -*- coding: UTF-8 -*-
file_=open(r"C:\Users\Administrator\Desktop\123.txt",'w',encoding='utf-8')
try:
file_=open(r"123.txt",'a',encoding='utf-8')
except:
file_=open(r"123.txt",'w',encoding='utf-8')
else:
file_=open(r"123.txt",'a',encoding='utf-8')
print('-'*30)
while True:
name=str(input('name:'))
......@@ -7,8 +12,8 @@ while True:
break
num=str(input('num:'))
print('-'*30)
file_.write(name+':'+num+'本\n')
file_.write(name+'捐赠:'+num+'本\n')
print('-'*30)
print('CLOSE:TURE')
print('Close:Ture')
print('-'*30)
file_.close()
\ 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