Commit a4490941 by BellCodeEditor

save project

parent 5d851fd9
Showing with 25 additions and 3 deletions
import func
...@@ -2,5 +2,26 @@ def new_ input() ...@@ -2,5 +2,26 @@ def new_ input()
total = [] total = []
while True: while True:
moner = input('请输入(q退出):') moner = input('请输入(q退出):')
if : if unit == 'q':
break
\ No newline at end of file else:
try:
uuit = int(uuit)
except:
print('重输')
else:
total.append(unit)
finally:
print('-'*30)
return total
def sum(moner):
count = 0
for i in moner:
count = count + i
return count
price = new_input()
pay = sum((range))
\ 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