Commit 05540082 by BellCodeEditor

save project

parent 05e7d622
Showing with 28 additions and 0 deletions
def sgstr():
sxstr = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
try:
sbstr=int(unit)
except:
print("傻逼,输错了")
else:
sxstr.append(sbstr)
finally:
print("-"*30)
return sxstr
print(sxstr)
def dsxstr(dsqstr):
sqstr=0
for i in dsqstr:
sqstr+=i
return sqstr
dsbstr=sgstr()
hlbf=dsxstr(dsbstr)
print("傻逼,给"+str(hlbf)+"元!!!!!!!!")
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