int id = 16;

Console.WriteLine(id.ToString(
"D5"));
Console.WriteLine(String.Format(
"{0:D5}",id));

Result:
00016

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-11-02
  • 2021-06-02
  • 2022-12-23
猜你喜欢
  • 2021-07-18
  • 2022-12-23
  • 2021-07-04
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案