Commit 58b8509c by BellCodeEditor

save project

parent 6b7e0caa
Showing with 4 additions and 11 deletions
def new_input():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
new_input()
\ No newline at end of file
filel=open(r'C:\Users\Administrator\Desktop\book.txt','w',encoding='utf-8')
filel.write('小兰:12''小丽:11''李文:9''张伟:16')
filel.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