Commit f762b422 by BellCodeEditor

save project

parent 7ccd7873
Showing with 13 additions and 4 deletions
def nn() def nn()
total = [] total = []
while True: while True:
unit= input("请输入:") u= input("请输入:")
if unit== 'q': if u== 'q':
break break
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
\ No newline at end of file def sun(u):
cou=0
for i in u:
cou=cou+i
return cou
pr=nn()
pa=sun(pr)
print(str(pr))
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