Commit 37fa3897 by BellCodeEditor

save project

parent 27e41ff6
Showing with 11 additions and 3 deletions
......@@ -11,5 +11,13 @@ def price():
print('请输入一个整数')
else:
total.append(unit)
print(total)
price()
\ No newline at end of file
return total
a=price()
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