Commit 7c544637 by BellCodeEditor

auto save

parent dc70412a
Showing with 41 additions and 0 deletions
def new_input():
total = []
while True:
unit= input("请输入(q退出):")
if unit== 'q':
break
else:
try:
unit = int(unit)
except:
print('重新输数字')
else:
total.append(unit)
print("-"*30)
print(total)
new_input()
\ No newline at end of file
# try:
# age = int(input('你几岁'))
# except:
# print('输整数')
# else:
# if age <18:
# print('不可喝酒111')
# print('结束')
p=[15,18,14,25]
def a(m):
w=0
for i in p:
w=w+1
m=w
return m
\ No newline at end of file
try:
age = int(input('你几岁'))
except:
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