【发布时间】:2014-07-24 14:24:35
【问题描述】:
我需要逐行解释一个python程序。我在 python 中使用 -c 选项,并且有这样的 makefile。
all:
python -c
"print 'aa'
print 'bb'"
当我用 make 运行它时,我得到 p>
python -c "print 'aa'
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [all] Error 2
当我取出相同的 python 行并从 bash 运行时,它工作正常。可能是什么问题?
【问题讨论】: