How do I represent and work with n-bit vectors in Python?

后端 未结 7 2072
鱼传尺愫
鱼传尺愫 2020-12-03 12:04

In an assignment I am currently working on we need to work with bit vectors, but I am very unsure of how to do this in Python. They should be able to be from 4 bits to 20 bi

7条回答
  •  春和景丽
    2020-12-03 12:24

    The library BitVector is a pure-Python library for this purpose, and should suit the needs you specified.

提交回复
热议问题