string a=@"Marry said ""hello"" to me";输出是//Marry said "hello" to me.这个@后面的的引号和哪个引号是一对的?

解决方案 »

  1.   

    string a=@"Marry said ""hello"" to me";string a="Marry said \"hello\" to me";
      

  2.   

    string a="Marry said"+"hello"+"to me";
    多少个字符串都可以加的呀,为什么不用呢
      

  3.   

    使用@是使转义序列“不”被处理,按“原样”输出
    如要在一个用 @ 引起来的字符串中包括一个双引号,
     就需要使用两对双引号了。so,
       Marry said "hello" to me.
    使用@表现形式就是这样的:
      string a=@"Marry said ""hello"" to me";
      
      

  4.   


    顶,最后一个引号对应,中间的两个连续""作为转义"用的,所以结果是:Marry said "hello" to me.
      

  5.   

    string a=@"Marry said ""hello"" to me";