Commit f8078a36 by BellCodeEditor

save project

parent c7c75112
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(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