我曾经在Python2.7上开发过一个程序,并且需要针对Python 2.6.6对其进行重新设计。我做了一些小的更改,但是在尝试编译时收到此错误。有人遇到过这个吗?我在Google上找不到很多东西。任何帮助,将不胜感激 Traceback (most recent call last): File "makexml.py", line 13, in <module> from scapy.all import rdpcap File "/user/.pyenv/versions/2.6.6/lib/python2.6/site- packages/scapy/all.py", line 11, in <module> from scapy.config import * File "/user/.pyenv/versions/2.6.6/lib/python2.6/site- packages/scapy/config.py", line 84 self.layers = {owner for f in self.fields for owner in f.owners} ^ SyntaxError: invalid syntax
添加回答
举报
0/150
提交
取消