我安装了 11.10,正在尝试生成 TSP 艺术。我正在使用给出的说明这里。
但是,我不确定如何运行文章中给出的命令。我尝试运行页面上给出的命令,得到以下结果:
bubba@bubbasbox:~$ /home/bubba/Desktop/tsp_art_tools_0_8_1/tspart.py/home/bubba/Desktop/tsp_art_tools_0_8_1/baby04.pbm
bash: /home/bubba/Desktop/tsp_art_tools_0_8_1/tspart.py/home/bubba/Desktop/tsp_art_tools_0_8_1/baby04.pbm: Not a directory
bubba@bubbasbox:~$ /home/bubba/Desktop/tsp_art_tools_0_8_1/tspart.py
from: can't read /var/mail/tspbitcity
from: can't read /var/mail/tspsolution
/home/bubba/Desktop/tsp_art_tools_0_8_1/tspart.py: line 74: syntax error near unexpected token `=='
/home/bubba/Desktop/tsp_art_tools_0_8_1/tspart.py: line 74: `if sys.platform.lower() == 'win32':'
那么如何正确输入命令呢?
答案1
应该有一个空间/home/bubba/Desktop/tsp_art_tools_0_8_1/tspart.py/home/bubba/Desktop/tsp_art_tools_0_8_1/baby04.pbm
所以应该是这样的
/home/bubba/Desktop/tsp_art_tools_0_8_1/tspart.py /home/bubba/Desktop/tsp_art_tools_0_8_1/baby04.pbm