Commit 4eeba3aa by BellCodeEditor

save project

parent efaa4989
...@@ -2,7 +2,7 @@ money = 0 ...@@ -2,7 +2,7 @@ money = 0
def caidejiaqian(): def caidejiaqian():
total = [] total = []
while True: while True:
unit = input('请输入蔡的价钱(q键退出):') unit = input('请输入(q键退出):')
if unit== 'q': if unit== 'q':
break break
else: else:
...@@ -22,4 +22,4 @@ def qiuhe(money1): ...@@ -22,4 +22,4 @@ def qiuhe(money1):
cont+=i cont+=i
return cont return cont
num = qiuhe(money) num = qiuhe(money)
print(num) #print(num)
\ No newline at end of file \ No newline at end of file
import func
data=func.num()
num1=func.money()
print('总共得了',num1,'分')
\ 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