Commit b78b9274 by BellCodeEditor

auto save

parent 403e222c
Showing with 18 additions and 7 deletions
def new_input(): def new_input():
total=[] list = []
a = input('输入数值')
while True: while True:
unti= input("请输入") if a == 'q':
if unti=='wdnmd':
break break
try:
a = int(a)
except:
print('错误')
else: else:
tptal.append(unti) list.append(a)
print(new_input) return new_input()
new_input() def s(o):
\ No newline at end of file zong = 0
for i in o:
zong = zong+i
return zong
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