异常 对待异常的态度 A ship in port is safe, but that is not what ships are built for.” –Grace Murray Hopper 一些异常处理 x = input("input an int num :") assert (x.isdigit()),"Input is not int"