gpt4 book ai didi

powershell - 如何在 PowerShell 中将 `n 打印为字符串?

转载 作者:行者123 更新时间:2023-12-03 23:44:55 26 4
gpt4 key购买 nike

如何在 PowerShell 字符串中插入 `n?我想显示 `n 但我无法转义换行符。

谢谢,

DD

最佳答案

有几种方法。这里有两个:

单引号:

'This is `n stuff'

或者用双引号:

"This is ``n stuff"

关于powershell - 如何在 PowerShell 中将 `n 打印为字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17193777/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com