C#的代码是这样的,字符串打印的返回值是字符串的长度,知道这个就能写出这个问题的答案了。
using System;
namespace BasicEx
{
class Ex9
{
static void Main(string[] args)
{
Console.WriteLine("Hello world!");
Console.WriteLine("{0}", "Hello world!".Length);
Console.ReadKey();
}
}
}
京公网安备 11010502036488号