Commit f8078a36 by BellCodeEditor

save project

parent c7c75112
Showing with 11 additions and 3 deletions
...@@ -11,5 +11,13 @@ def price(): ...@@ -11,5 +11,13 @@ def price():
print('您输入的不是整数,请输入整数!') print('您输入的不是整数,请输入整数!')
else: else:
total.append(unit) total.append(unit)
print(total) return total
price() a=price()
\ No newline at end of file print(a)
def hroot(d):
count=0
for i in d:
count=count+i
return count
z=hroot(a)
print(z)
\ 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