Commit 88e1c164 by BellCodeEditor

save project

parent 3911b257
Showing with 12 additions and 3 deletions
...@@ -10,8 +10,18 @@ def new_input(): ...@@ -10,8 +10,18 @@ def new_input():
except: except:
print('TM输整数or浮点数') print('TM输整数or浮点数')
else: else:
total.append(unit) total.append(ikun)
return total return total
def sum(m):
su=0
for i in m:
su+=i
return su
y = new_input() y = new_input()
print(y) print(y)
\ No newline at end of file summmm=sum(y)
print(summmm)
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