bash: syntax error near unexpected token `(' - Python

前端 未结 4 1570
野的像风
野的像风 2020-12-03 10:37
# from lxml import etree; 
import module2dbk; 
print module2dbk.xsl_transform(etree.parse(\'test-ccap/col10614/index.cnxml\'), []);

Error: bash: syntax error near u         


        
4条回答
  •  难免孤独
    2020-12-03 11:08

    Are you typing this at the unix command prompt? You should be doing this inside the python environment, ie. type python at the prompt and work from there.

    Also, no ; needed at the end of the line in Python

提交回复
热议问题