我有下面的代碼片段,但有一個語法錯誤,我無法跟蹤。字符串分配語法錯誤
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