Commit 0c285000 by BellCodeEditor

save project

parent 77b76ab9
Showing with 2 additions and 2 deletions
def new_input(): def new_input():
total = [] total = []
while True: while True:
unit= input("Please import:(If you depress "U", it will break.")") unit= input("Please import:(If you depress U, it will break.)")
if unit== 'q': if unit== 'q':
break break
else: else:
try: try:
unit=int(unit) unit=int(unit)
except: except:
print("Please import a number.") print("Please import a number again.")
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
......
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