python 如何跳过异常继续执行
摘要:使用try...except...语句,类似于if...else...,可以跳过异常继续执行程序,这是Python的优势 用法如下: 1 2 3 4 5 6 try: # 可能会出现异常的一段代码 command_1 # 如果command_1出现异常,则不执行command_1以及之后的语句 co
阅读全文
posted @ 2017-02-24 13:31
posted @ 2017-02-24 13:31
posted @ 2017-02-24 07:54
posted @ 2017-02-22 08:15