int 到 boolean 数组 python
如果我有一个 char d 和一个 char k,如何将每个转换为位数组(例如 True-False-True-True-True-False-False-True),然后通过 AND 将数组合并为单个数组-ing 每个位(然后将组合数组转回字符)?比如01100001(a)和01100011(c)组合起来就是01100001(c)?另外,有时这些转换的结果不是ASCII(如00000010)?
If I have a char d and a char k, how do I turn each into a bit array (such as True-False-True-True-True-False-False-True) and then combine the arrays into a single array by AND-ing each bit (and then turning the combined array back into a char)? Such as 01100001 (a) and 01100011 (c) combine to make 01100001 (c)? Also, sometimes the results of these conversions are not ASCII (such as 00000010)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无需创建数组:
no need to make an array: