Commit 58eab705 by BellCodeEditor

save project

parent b59ac934
Showing with 7 additions and 6 deletions
def new_input(): def new_input():
total = [] total = []
while True: while True:
unit=input("买了蛤,不给不100w许走:") unit= input("买了蛤,不给¥不许走:")
if unit == 'q': if unit== 'q':
break break
else: else:
try: try:
unit = int(unit) unit = int(unit)
except: except:
print('不是哥们我™只让你输入整数!') print('不是哥们,我让你输入其他的了吗!?')
else: else:
total.append(unit) total.append(unit)
print(total) return total
new_input() result = new_input()
\ No newline at end of file print(result)
\ 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