C#双引号 [英] C# two double quotes

查看:195
本文介绍了C#双引号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打印在C#中两个双引号作为输出。如何做到这一点。



我的意思是,输出应为:<?code>的Hello World,


解决方案

  Console.WriteLine(\\的Hello world \\ ); 

  Console.WriteLine(@世界,你好); 


I want to print two double quotes in C# as the output. How to do this?

I mean the output should be: "" Hello World ""

解决方案

Console.WriteLine("\"\" Hello world \"\"");

or

Console.WriteLine(@""""" Hello world """"");

这篇关于C#双引号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆