string.Format 和 String.Format  ,不论是用法还是意思,都是一样的 

怎么使用? 通过 占位符来替换 ,类似于 Replace 的操作

string s = string.Format("你好世界{0},海{1}宝宝,{0}", "","");

s的结果为  “你好世界啊,海棉宝宝,啊”

 

相关文章:

  • 2022-02-04
  • 2021-08-16
  • 2021-11-07
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
  • 2021-06-19
  • 2021-10-19
猜你喜欢
  • 2022-01-07
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案