gpt4 book ai didi

c# - 如何在 "@..."C# 字符串中写入制表符 (\t)?

转载 作者:太空狗 更新时间:2023-10-29 18:03:35 34 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
C# @“” how do i insert a tab?

我试图只使用键盘上的制表符,但编译器将制表符解释为空格。使用 \t 也不起作用,它将按字面意义将其解释为 \t 。这是不可能的还是我错过了什么?

string str = @"\thi";
MessageBox.Show(str); // Shows "\thi"

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