C# 十进制字符串转二进制字符串8bit示例

Console.WriteLine(Convert.ToString(Convert.ToInt16("071", 16), 2).PadLeft(8, '0'));

你可能感兴趣的:(C#,c#)