进制转换: bin = Convert.ToString(dec, 2); 缺位补零: bin = bin.PadLeft(8, '0');
C# 二进制转换 缺位补零June 16, 2018 · Wi1dcard | View on GitHub进制转换:bin = Convert.ToString(dec, 2); 缺位补零:bin = bin.PadLeft(8, '0');