Commit fe66cbcd by BellCodeEditor

save project

parent 6fcfac6d
Showing with 16 additions and 8 deletions
def ikun():
total = []
while True:
unit=int( input("请输入:"))
unit=input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
try:
total.append(int(unit))
except:
print('这都能错,小垃圾')
nim=0
for i in total:
nim+=i
# print(total)
return nim
try:
ikun()
except:
print('这都能错,小垃圾')
\ No newline at end of file
skj=ikun()
print(skj)
\ 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