Commit b7e33a71 by BellCodeEditor

auto save

parent fc0e51e6
Showing with 8 additions and 10 deletions
def b():
a = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
a.append(unit)
b()
\ No newline at end of file
try:
unit= int(input("请输入:"))
except:
print("输入整数")
else:
if unit== '1':
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