Commit f0da61a1 by BellCodeEditor

save project

parent 228f6268
Showing with 7 additions and 6 deletions
total = [] xbhssx=0
while True: while True:
unit= input("请输入:") while True:
if unit== 'q': xbhssb= input("请输入:")
if xbhssb== 'q':
break break
else: else:
total.append(unit) xbhssx+=int(xbhssb)
print(total) print(xbhssx)
\ No newline at end of file \ 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