crc32_reverse(0x308e1d5b,4) File "C:\Use._attributeerr">
当前位置:   article > 正文

Python AttributeError: ‘map‘ object has no attribute ‘extend‘_attributeerror: 'map' object has no attribute 'ext

attributeerror: 'map' object has no attribute 'extend
  1. C:\Users\kai\Desktop\CRC32-1-6>python3 crc321-6.py
  2. verification checksum: 0x308e1d5b (OK)
  3. Traceback (most recent call last):
  4. File "C:\Users\kai\Desktop\CRC32-1-6位\crc321-6.py", line 3, in <module>
  5. crc32_reverse(0x308e1d5b,4)
  6. File "C:\Users\kai\Desktop\CRC32-1-6位\my_crc32.py", line 129, in crc32_reverse
  7. obj.run_reverse()
  8. File "C:\Users\kai\Desktop\CRC32-1-6位\my_crc32.py", line 109, in run_reverse
  9. patch.extend(last_4_bytes)
  10. AttributeError: 'map' object has no attribute 'extend'
  1. for item in self.dfs(self.length - 4):
  2. patch = map(ord, item) ###Python 2.x 返回列表。
  3. patches = self.findReverse(desired, self.calc(patch, accum))
  4. for last_4_bytes in patches:
  5. if all(p in self.char_set for p in last_4_bytes):
  6. patch.extend(last_4_bytes)
  7. print ('[find]: {1} ({0})&
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/神奇cpp/article/detail/766992
推荐阅读
相关标签
  

闽ICP备14008679号