二进制转换,IP地址十进制转二进制:
1 1 //10^0
2 10 //10^1
4 1 00 //10^2
8 10 00 //10^3
16 1 00 00 //10^4
32 10 00 00 //10^5
64 1 00 00 00 //10^6
128 10 00 00 00 //10^7
1 2 4 .. 128 ,共8个数
168 : 128+(32+8) //10 10 10 00
50 : 32+(16+2) //00 11 00 10
192 : 128+(64) //11 00 00 00
72 : 64+(8) //01 00 10 00
二进制转十进制:
11111101 : 128+64+32+16+8+4+1 //251
原文地址:http://blog.51cto.com/12555197/2169045
时间: 2024-10-10 09:44:44