Commit d9a83be2 by BellCodeEditor

save project

parent 01efa2db
Showing with 10 additions and 3 deletions
...@@ -10,6 +10,13 @@ def new_input(): ...@@ -10,6 +10,13 @@ def new_input():
except: except:
print('输入整数') print('输入整数')
else: else:
total.append(unit) total.append(unit)
print(total) return total
new_inpu
\ No newline at end of file def zongjia(list):
j=0
for i in list:
j+=1
return j
print('总价是'+str(zongjia(new_input())))
\ 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