版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chenyuk1/article/details/85069327
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(' ' + 1); //33 打印出的结果是33
//ASCII表中 第32个字符是 空格字符。 输出结果为char+int =int
// 在exe中打印空格 " "。
for (int i = 0; i < 100; i++)
{
if (i % 10 == 0)
Console.WriteLine();
Console.Write(' '+i);
}
return;
}
}
}
Console.WriteLine( ' ' + 1);
输出 33
Console.WriteLine( “ ” + 1);
输出 _1