任何人都可以帮我这个代码吗? 如果我用pyretic运行这个代码,那么pyretic会说
File "/home/ibrahim/pyretic/pyretic.py", line 313, in <module>
main()
File "/home/ibrahim/pyretic/pyretic.py", line 191, in main
module = import_module(module_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/ibrahim/pyretic/pyretic/examples/kshortestpathpyretic.py", line 58
distances[node_start]=0
^
IndentationError: unindent does not match any outer indentation level
What s wrong with this code if i run this codewith pyretic
the image is the result if i run this code with pyretic controller
答案 0 :(得分:0)
如错误消息所示,您需要更正python源代码中的缩进(块之间的选项卡)。
由于链接不可用,我无法看到您的代码。