iT邦幫忙

0

python 取得ping失敗的錯誤訊息(已解決)

ddx 2022-03-02 11:42:18602 瀏覽
  • 分享至 

  • xImage

我參考這篇和這篇
https://ithelp.ithome.com.tw/questions/10196348
https://pypi.org/project/pythonping/
第一篇:
可以取得ping的訊息
但是今天ping不到的話,會報錯反而不會出現錯誤訊息
第二篇:
取得回來的會是英文,但是錯誤訊息會變成
Round Trip Times min/avg/max is 2000/2000.0/2000 ms
這個奇怪的東西
有什麼方法可以取得中文的錯誤訊息?
解決方法請參考
http://www.zhishibo.com/articles/96627.html

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答