Commit 3d1637ed by BellCodeEditor

save project

parent 0b8d474e
Showing with 39 additions and 0 deletions
gr捐赠:g本
erg捐赠:reg本
rg捐赠:r本
捐赠:gre本
捐赠:t本
f捐赠:ef本
sf捐赠:df本
sdf捐赠:df本
捐赠:w本
fwe捐赠:fe本
f捐赠:fe本
f捐赠:fe本
f捐赠:f本
df捐赠:df本
ds捐赠:f本
sdfd捐赠:f本
df捐赠:sf本
df捐赠:sdf本
df捐赠:df本
d捐赠:f本
df捐赠:ds本
df捐赠:df本
sf捐赠:d本
......@@ -5,11 +5,27 @@ 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:'))
if name=='close':
break
if name=='read':
print('*'*30)
file_.close()
file_temp=open(r"123.txt",'r',encoding='utf-8')
for i in file_temp:
print(i)
file_temp.close()
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)
continue
num=str(input('num:'))
print('-'*30)
file_.write(name+'捐赠:'+num+'本\n')
......
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