python捕獲所有異常怎麼寫 python中捕獲執行緒丟擲的異常

來源:時尚少女範 1.2W
python捕獲所有異常怎麼寫 python中捕獲執行緒丟擲的異常

except (IDontLIkeYouException, YouAreBeingMeanException) as e:pass用逗號分割的方法只能在Python2.6和2.7裡好使,在Python3中則無效;

熱門標籤