def ping(myserver): return subprocess.check_output('ping -c 1 %s' % myserver, shell=True) >>> ping('8.8.8.8') 64 bytes from 8.8.8.8: ...
確定! 回上一頁