以下字符串在命令行中有效,我想将其括在外部引号中以将其用作 Python 应用程序中的字符串,但不知道如何对其进行转义。有人可以帮忙吗,或者有应用程序或网站可以帮我做这件事吗?
powershell -Command "&cmd.exe -ArgumentList '/c \"\"c:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe\" d:\xx\Code\VisualStudio\my_project\my_project.sln /Target:Rebuild /p:Configuration=Debug /p:Platform=x64 /p:BuildInParallel=false\"'"