简化创建和分析二进制数据操作的 Python 模块 - BitString
fmms
14年前
<p>bitstring 是一个 Python 模块用来简化创建和分析二进制数据的操作,BitString 的对象可直接从包括整数、浮点数、十六进制、十进制和二进制、字节数据中构造。</p> <p><img style="width:375px;height:118px;" alt="简化创建和分析二进制数据操作的 Python 模块 - BitString" src="https://simg.open-open.com/show/aef99db9d82ecb15497d336157c88af7.png" /> </p> <p>示例代码:</p> <pre class="brush:python; toolbar: true; auto-links: false;">>>> h = BitArray('0x000001b3') >>> o = BitArray('0o755') >>> b = BitArray('0b001001111')</pre> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1326987233562" target="_blank">http://www.open-open.com/lib/view/home/1326987233562</a></p> <p></p>