Commit d965c2de by BellCodeEditor

auto save

parent 7eaed43a
Showing with 16 additions and 0 deletions
def number():
total = []
while True:
unint = int(input("请输入价格:"))
if unint == 101:
break
else:
total.append(unint)
return total
lists = number()
print(lists)
自我介绍:
我做的是一个简单的Python价格统计程序,重复获取用户输入内容,
直到用户退出,最终将用户输入的内容全部保存到列表进行打印
\ 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