700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > python执行shell脚本报错_在python中执行shell命令:字符串错误

python执行shell脚本报错_在python中执行shell命令:字符串错误

时间:2022-10-26 16:44:52

相关推荐

python执行shell脚本报错_在python中执行shell命令:字符串错误

我在Windows命令行参考中的以下内容似乎相关:

*Using multiple commands

You can use multiple commands separated by the command separator && for

string, but you must enclose them in quotation marks (for example,

"command&&command&&command").

*Processing quotation marks

If you specify /c or /k, cmd processes the remainder of string and quotation marks

are preserved only if all of the following conditions are met:

o You do not use /s.

o You use exactly one set of quotation marks.

o You do not use any special characters within the quotation marks (for

example: &<>( ) @ ^ |).

o You use one or more white-space characters within the quotation marks.

o The string within quotation marks is the name of an executable file.

If the previous conditions are not met, string is processed by examining the first

character to verify whether or not it is an opening quotation mark. If the first

character is an opening quotation mark, it is stripped along with the closing

quotation mark. Any text following the closing quotation marks is preserved.

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。