String 有没有可能写一个;在字符串中,如果是,如何?

String 有没有可能写一个;在字符串中,如果是,如何?,string,powershell,escaping,String,Powershell,Escaping,我需要将“写入字符串,因为脚本需要它的格式,但我不知道如何执行 是否需要将其标记为字符?您需要将其加倍,放在一个引号内,或使用` echo "This will output a double quote """ echo '"This will also be put in double quotes"' echo "`"This is another way to quote`"" 有关更多字符串引用的基础知识,请参阅您是否听说过转义字符?可能重复的可能重复的

我需要将
写入字符串,因为脚本需要它的格式,但我不知道如何执行


是否需要将其标记为字符?

您需要将其加倍,放在一个引号内,或使用
`

echo "This will output a double quote """
echo '"This will also be put in double quotes"'
echo "`"This is another way to quote`""

有关更多字符串引用的基础知识,请参阅

您是否听说过转义字符?可能重复的可能重复的