Commit f0080dc0 by BellCodeEditor

save project

parent 46dccf44
Showing with 2 additions and 2 deletions
...@@ -3,7 +3,7 @@ def sb(): ...@@ -3,7 +3,7 @@ def sb():
while True: while True:
unit= input("请输入:") unit= input("请输入:")
try: try:
unitl=int(unit) unit1=int(unit)
except: except:
if unit== 'q': if unit== 'q':
break break
...@@ -17,7 +17,7 @@ r=sb() ...@@ -17,7 +17,7 @@ r=sb()
def sum(alist): def sum(alist):
count=0 count=0
for i in alist: for i in alist:
count=count+i count = count+ i
return count return count
n = sum(r) n = sum(r)
......
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