16进制格式化

a.ToString("x")可以把10变成a  
string.Format("{0:xxxx}", a)可以把10变成000a 

posted on 2018-08-23 17:33  马什么梅  阅读(325)  评论(0)    收藏  举报

导航