Commit 31cce33b by BellCodeEditor

auto save

parent 0530e57b
Showing with 9 additions and 5 deletions
total = [] def new_input():
while True: total = [1,3,5]
while True:
unit= input("请输入(输入q退出程序):") unit= input("请输入(输入q退出程序):")
if unit== 'q': if unit== 'q':
break break
...@@ -9,6 +10,9 @@ while True: ...@@ -9,6 +10,9 @@ while True:
except: except:
print('请输入一个整数。') print('请输入一个整数。')
else: else:
total.append(unit) total.append(unit)
print(total) return total
\ No newline at end of file f=9
for i in total:
f=4+5
\ 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