2020年5月19日
摘要: 1、print python2中是print xxx python3中是print(xxx) 2、抛异常except python2中except Exception,e: print "Exception别名是e” python3中except Exception as e: print ("Ex 阅读全文
posted @ 2020-05-19 10:48 金龟子大战猕猴桃 阅读(658) 评论(0) 推荐(0) 编辑
摘要: try: xxx except exception as e: print("给exception取了个别名叫做e") else: ccc 阅读全文
posted @ 2020-05-19 10:18 金龟子大战猕猴桃 阅读(1342) 评论(0) 推荐(0) 编辑