源代码
try: print(x) except: print("An exception occurred")
运行结果