Commit 0e1d0d34 by BellCodeEditor

save project

parent be018cdb
Showing with 10 additions and 4 deletions
...@@ -11,6 +11,12 @@ def price(): ...@@ -11,6 +11,12 @@ def price():
print("输入数字哦") print("输入数字哦")
else: else:
print("继续输入") print("继续输入")
print(total) return total
d=price() def sum(list):
print(d) count=0
\ No newline at end of file for i in list:
count+=i
return count
result=price()
b=sum(result)
print(b)
\ 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