Commit 37fa3897 by BellCodeEditor

save project

parent 27e41ff6
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(b):
count=0
for i in b:
count=count+i
return count
f=hroot(a)
print(f)
\ 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