Commit 52a47ca9 by BellCodeEditor

save project

parent e124d7c0
...@@ -3,7 +3,7 @@ def dc(): ...@@ -3,7 +3,7 @@ def dc():
total = [] total = []
while True: while True:
unit= input("请输入分数:") unit= input("请输入:")
if unit== 'q': if unit== 'q':
break break
else: else:
...@@ -16,6 +16,7 @@ def dc(): ...@@ -16,6 +16,7 @@ def dc():
return total return total
v=dc() v=dc()
#print(v)
def co(c): def co(c):
count=0 count=0
for i in c: for i in c:
......
import func import func
dat=func.dc() dat=func.dc()
score=func.co() score=func.co(dat)
print(score) print('你的总分为'str(score))
\ No newline at end of file \ 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