📜  c# 如何将控制台输出分组到列 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:55.180000             🧑  作者: Mango

代码示例1
/* 
The Second value (in this case, 10) determines the width of the column in spaces.
Positive values cause your input to be right aligned, negative values are left aligned.
*/

Console.WriteLine($"{customer[DisplayPos],10}" +
                  $"{salesFigures[DisplayPos],10}" +
                  $"{feePayable[DisplayPos],10}" +
                  $"{seventyPercentValue,10}" +
                  $"{thirtyPercentValue,10}");