Commit b9ea34e7 by BellCodeEditor

save project

parent 05e7d622
Showing with 40 additions and 0 deletions
def hello(name):
con="你好!"+name
return con
re=hello("xiao")
print(re)
def nn()
total = []
while True:
u= input("请输入:")
if u== 'q':
break
else:
try:
u=int(u)
except:
print('重输')
else:
total.append(u)
finally
print('**************************************')
print(total)
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