Commit 25604dd8 by BellCodeEditor

save project

parent dc70412a
Showing with 24 additions and 0 deletions
def qwertyuiopasdfghjklzxcvbnm():
total=[]
while True:
unit=input("请请请请请请请请请请请请请请请请请请请请请请请请请请请请输入:")
if unit =="q":
break
else:
try:
y=int(unit)
except:
print("你TM有病吧,要输入整数!太可恶了,必须受到制裁!来人啊,给他喂鸡汤!")
else:
total.append(y)
print("*"*70)
return total
def hu(yg):
h=0
for bh in yg:
h=h+bh
return h
hvk=qwertyuiopasdfghjklzxcvbnm()
y=hu(hvk)
print(y)
\ No newline at end of file
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