Commit 9cf2573b by Administrator

Add new file

parents
Showing with 10 additions and 0 deletions
# 将下面代码封装成一个新函数new_input(),并调用
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
\ 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