编写脚本,使用for和while分别实现192.168.0.0/24网段内,地址是否能够ping通,若ping通则输出"success!",若ping不通则输出"fail!" 用 for 循环实现 ping 用 while 来实现同样的效果