Console.Write("{0}*{1}", (1 == 2 ? 3 : 4) / 2, "10"); 输出值是多少?在线等,挺急的。
Console.Write("{0}*{1}", (1 == 2 ? 3 : 4) / 2, "10"); 输出值是多少?在线等,挺急的。
日期:2021-12-27 19:23:47 人气:1
Console.WriteLine()有一个重载 WriteLine(String, Object[]) 或者 WriteLine(String, Object,Object,Object) Console.WriteLine("{0}+{1}={2}",a,b,a+b);这句里面的WriteLine函数一共有四个参数 "{0}+{1}={2}" a b a+b 而对于"{0}+{1}={2}"的格.