pythonbitstring 3.1.0 发布

python-bitstring 3.1.0 是一个小更新版本,包含一个新的 'pad' 令牌用于跳过不想要的位,mutable 类增加了 clear 和 copy 的方法,同时还修复了一些小 bug。

bitstring 是一个 Python 模块用来简化创建和分析二进制数据的操作,BitString 的对象可直接从包括整数、浮点数、十六进制、十进制和二进制、字节数据中构造。

示例代码:

1 >>> h = BitArray('0x000001b3')
2 >>> o = BitArray('0o755')
3 >>> b = BitArray('0b001001111')
原文地址:https://www.cnblogs.com/shihao/p/2939084.html