Commit 7a6ef674 by BellCodeEditor

save project

parent 092b4f79
Showing with 919 additions and 10 deletions
'''
total = [] total = []
while True: def new_input():
unit= input("请输入:") while True:
if unit== 'q': try:
break unit=int(input("请输入:"))
else: if unit== 'q':
total.append(unit) break
print(total) except:
print("错了哦")
else:
total.append(unit)
print(total)
print('程序结束~~')
''' '''
try: try:
age = int(input('你今年几岁')) age = int(input('你今年几岁'))
...@@ -15,4 +19,910 @@ except: ...@@ -15,4 +19,910 @@ except:
else: else:
if age < 16: if age < 16:
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