一、错误处理 输出错误:try:, except … as …: 看如下代码 try: file=open('eee.txt','r')#会报错的代码 except Exception as e: print(e)