Python第四次笔记(补发)

Python的if while for If条件判断 if 判断条件: 执行语句 age = input("Please input your age: ") if age.strip(): if age.isdigit(): if int(age)>=18: print("你是一个成年人") else: print("你还是一个小孩子") else: print("你输入的不是数字") else
相关文章
相关标签/搜索