ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
![](http://www.rhinostudio.cn/files/course/2019/03-01/231156cd9bef280949.png) ## **Format** format格式化函数,可以参考python中的函数用法,用data 0&1 输入端的数据代替掉Format端中{}内的内容: ![](http://www.rhinostudio.cn/files/course/2020/03-28/144944889a78420203.png) ![](http://www.rhinostudio.cn/files/course/2020/03-28/1447346506fe785535.png) 输入端可以不断增加。就是这个Culture改了半天好像没啥区别。 ![](http://www.rhinostudio.cn/files/course/2020/03-28/145018a83478701245.png) 注意:Format中的{0}一定要用英文输入法输入,不然会出错。 by火神:规则符要英文舒服法输入的,比如冒号引号逗号这些,为了全面的展示使用效果,我再给出一个案例![](https://img.kancloud.cn/54/f8/54f80947c2a78b6fd0163986a2ad9112_1196x584.png) by白菜:补充当你想在文本中使用{}作为字符时,请使用{{和}},如图: ![](https://img.kancloud.cn/e2/c5/e2c59c6eb018d7abd59984f4ed988264_1127x320.png) 如果你想在在数字前面补齐零的话,可以用{0:000000}: ![](https://img.kancloud.cn/14/25/1425c860b22e7ebae3a70134ab28b33d_767x263.png)