Commit f327dbca by BellCodeEditor

save project

parent 67ced2ae
Showing with 5 additions and 3 deletions
total = [] money = 0
def caidejiaqian(): def caidejiaqian():
total = []
while True: while True:
unit = input('请输入蔡的价钱(q键退出):') unit = input('请输入蔡的价钱(q键退出):')
if unit== 'q': if unit== 'q':
...@@ -14,5 +15,5 @@ def caidejiaqian(): ...@@ -14,5 +15,5 @@ def caidejiaqian():
print('_'*97) print('_'*97)
print(total) print(total)
return total return total
caidejiaqian() money = caidejiaqian()
print(total[0]) print(money[0])
\ 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