try : print(x) except: print("An exception occurred"). 运行实例. 由于try 块引发错误,因此会执行except 块。 如果没有try 块,程序将崩溃并引发错误: ...
確定! 回上一頁