请你帮我解决以下错误
ubuntu@ubuntu:~/Desktop/ns-allinone-3.32/ns-3.32$ ./waf -pyrun scratch/first.py .waf
Waf:进入目录/home/ubuntu/Desktop/ns-allinone-3.32/ns-3.32/build' Waf: Leaving directory /home/ubuntu/Desktop/ns-allinone-3.32/ns-3.32/build' Waf: Leaving directory构建命令将存储在Build //home/ubuntu/Desktop/ns-allinone-3.32/ns-3.32/build' Waf: Leaving directory_Commands.json 'build‘成功完成(1.500 s)
文件“划痕/第一个. 66”,第66行
AnimationInterface netanim ("my_first.xml")
^ SyntaxError:无效语法
请问如何纠正这个错误?
发布于 2020-12-12 02:41:53
我不使用Python绑定,但是看看手册中的此页。您可能需要做一些类似于
anim = ns.netanim.AnimationInterface("my_first.xml")https://stackoverflow.com/questions/65049205
复制相似问题