我有下面的代码片段,但有一个语法错误,我无法跟踪。字符串分配语法错误
space = "space"
title = "new"
content = "content"
command ='confluence --action storePage --space \"' + space + '\" --title \"' + title '\" --parent \"@home\" --content \"' + content + '\" --noConvert --server <server> --user <user> --password <password>'
由Python解释指出语法错误是在--content \”'。
在指出它是知道的任何帮助。
如果你正在运行一个命令,采取子库一看,这将确保它逃跑的所有参数。 – denisvm
好的,我使用的是os.system(),但我会看看它,谢谢! – aishpr