gpt4 book ai didi

c# - 如何在字符串中包含引号

转载 作者:IT王子 更新时间:2023-10-29 03:41:25 26 4
gpt4 key购买 nike

我有一个字符串“我想学习“c#””。如何在 C# 前后包含引号?

最佳答案

用反斜杠转义它们。

"I want to learn \"C#\""

关于c# - 如何在字符串中包含引号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3458046/

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