2017-06-19 37 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 –