2017-06-19 112 views
-1

任何人都可以帮我使用这段代码吗? 如果我运行此代码退热时,退烧意志说SDN k热解的最短路径

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

的错误消息说,你需要纠正在Python的缩进(块之间的选项卡)源代码。

由于链接不可用,我看不到您的代码。

+0

pyretic代码或另一个代码? –

+0

/home/ibrahim/pyretic/pyretic/examples/kshortestpathpyretic.py这个文件。 – engbarakat

+0

我不知道如何解决我的问题,请你给我你的电子邮件,以便我可以将我的代码发送给你,? @engbarakat –