C# 格式化字符串

C#字符串使用{}来格式化
{引索,宽度:格式}
格式后面加数字保留位数
格式 C人民币
{0,10:C10}

原文地址:https://www.cnblogs.com/lindexi/p/12087755.html