C# 进制变换过程中左侧填充0实现

如16进制A要填充为000A

string  str ="A";
str.PadLeft(4,'0');

 

posted @ 2024-09-29 17:26  echo-efun  阅读(26)  评论(0)    收藏  举报