Your account is temporarily unavailable due to site maintenance. It should be available again within a few hours. We apologize for the inconvenience.
from scapy import sr1,IP,ICMP然后出错ImportError: cannot import name sr1参考这里和这里,解决方法很简单:改成from scapy.all import sr1,IP,ICMP我自己裸在源码里边找这些定义和函数,自己罗import,结果很多以来关系都搞混了,最后还是出错。上边的方法一了百了。
from scapy import sr1,IP,ICMP然后出错
ImportError: cannot import name sr1参考这里和这里,解决方法很简单:改成
from scapy.all import sr1,IP,ICMP