Commit cee33f4b by BellCodeEditor

save project

parent d2d0ee87
Showing with 13 additions and 5 deletions
def new_input():
try:
total = []
while True:
unit=int(input("请输入:"))
unit=int(input("请输入,按p退出"))
if unit== 'q':
break
else:
try:
unit=int(unit)
except:
print('要输入整数')
else:
total.append(unit)
new_input()
print(total)
print(total)
return total
price=new_input
print('=*30')
price(price)
s=0
for i in price:
s+=i
print(str(s))
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