例子:IP:192.168.1.10 方法一: In [1]: bin(192)Out[1]: '0b11000000' In [2]: bin(168)Out[2]: '0b10101000' In [4]: bin(1)Out[4]: '0b1' In [5]: bin(10) Out[5]: '0b1010' 所以192.168.1.10 转换成整数:3232235786 In [6]: 0b11000000101010000000000100001010Out[6]: 323223578
title date layout tags Python 网站后台扫描 2018-05-08 post Python #!/usr/bin/python # This was written for educational purpose only. Use it at your own risk. # Author will be not responsible for any damage! # ###############################################