var title = book.Price.ToString("#0.##");

//使用.ToString方法分别传入#数字位,和0占位符

 

posted on 2021-07-20 22:45  ♩♪♫♬  阅读(156)  评论(0)    收藏  举报