Commit aee41f12 by BellCodeEditor

save project

parent 960a897c
Showing with 19 additions and 12 deletions
# def new_input(): def new_input():
# total=[] total=[]
# while True: while True:
# unit=input("输(q退)") unit=input("输(q退)")
# if unit=="q": if unit=="q":
# break break
# else: else:
# total.append(unit) try:
unit=int(unit)
except:
print("重")
else:
total.append(unit)
finally:
print("-"*30)
return total
# print(total) for i in prince:
# new_input()
# try: # try:
# age=int(input("你今年几")) # age=int(input("你今年几"))
...@@ -17,4 +24,5 @@ ...@@ -17,4 +24,5 @@
# else: # else:
# if age<18: # if age<18:
# print("不能喝酒") # print("不能喝酒")
# print("结") # print("结")
\ 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