摘要: 例: while True: try: x = int(input("Please enter a number: ")) break except ValueError: print("Oops! That was no valid number. Try again ") 让用户输入一个合法的整 阅读全文
posted @ 2019-06-17 16:29 追小白呀 阅读(139) 评论(0) 推荐(0) 编辑
↑ヾ(≧O≦)〃嗷~