Commit 88e1c164 by BellCodeEditor

save project

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