二进制数据操作的Python模块 - python-bitstring 3.0.2 发布

fmms 12年前
     <p><a href="/misc/goto?guid=4958200401492052445" target="_blank">bitstring </a>是一个 Python 模块用来简化创建和分析二进制数据的操作,BitString 的对象可直接从包括整数、浮点数、十六进制、十进制和二进制、字节数据中构造。</p>    <p><img style="width:381px;height:120px;" alt="二进制数据操作的Python模块 - python-bitstring 3.0.2 发布" src="https://simg.open-open.com/show/aef99db9d82ecb15497d336157c88af7.png" /> </p>    <p>示例代码:<span class="typ"><br /> </span></p>    <pre class="brush:python; toolbar: true; auto-links: false;">>>> h = BitArray('0x000001b3')  >>> o = BitArray('0o755')  >>> b = BitArray('0b001001111')</pre>    <br /> BitString 3.0.2 是一个小更新版本,主要是 bug 修复。    <p></p>