Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
什么是 c# 中等效的格式占位符(string.Format("{0:??}") 其中 '??' 是我问的占位符)对于“ %06d ”?
printf("%06d",number);
这可能会帮助你。
string st = string.Format("{0:000000} and {1:000000}", 123 ,456); //st => 000123 and 000456