How to make if statement with os.system() output

后端 未结 0 915
梦毁少年i
梦毁少年i 2020-12-15 01:03

I am trying to ping a host using os.system(\'ping 1.1.1.1 -c 1\') and im trying to make an if statement if the ping doesnt work such as if the host disables icm

相关标签:
回答
  • 消灭零回复
提交回复
热议问题