C#格式化输出时间:2022-06-21 07:12:04double a = 12354.365; Console.WriteLine(string.Format("{0:f4}", a)); 输出a的四位小数