Commit db22e336 by BellCodeEditor

save project

parent 55e05250
Showing with 5 additions and 4 deletions
def new_input: def new_input:
total = [] total = []
if unit== 'q':
break
while True: while True:
unit= input("请输入:") unit= input("请输入:")
unit=int(unit) unit=int(unit)
else:
try: try:
unit=int(unit) unit=int(unit)
try:
pass
except expression : except expression :
print("请输整数") print("请输整数")
unit= int(unit)
else: else:
total.append(unit) total.append(unit)
if unit== 'q': if unit== 'q':
......
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