Commit d459bb46 by BellCodeEditor

save project

parent dc70412a
Showing with 25 additions and 0 deletions
def hahaha():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
return (total)
break
else:
try:
int(unit)
except:
print("输入错误,请重新输入一个数字")
else:
print("-"*30)
total.append(int(unit))
print(total)
def ha(total):
for i in total:
cout=cout+i
print(cout)
hahaha()
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