Commit 41e85a21 by BellCodeEditor

save project

parent a42cef4d
Showing with 29 additions and 0 deletions
def nef():
total = []
while True:
unit = input("输入")
if unit = 'q':
break
else:
try:
unit=int(unit)
except:
print("充数")
else:
total.append(unit)
finally:
print("=================")
return total
def sum(m)
count = 0
for i in m:
count = count+i
return count
\ No newline at end of file
import f
s = nef
t = sum(nef)
print("总分为:"+int(t))
\ 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