今天打算写一个base64的加密解密脚本,结果出现AttributeError: module ‘base64’ has no attribute 'b64decode’错误。

Python的AttributeError: module 'base64' has no attribute 'b64decode'问题

解决办法:我的这个py文件名叫“base64.py”,与包base64重合了,因此出现混乱,所以只要把名字改成“base64加密.py”后,问题得到解决。

相关文章:

  • 2021-07-19
  • 2021-12-20
  • 2022-12-23
  • 2021-09-15
  • 2021-12-19
  • 2021-11-02
  • 2021-11-28
  • 2021-08-27
猜你喜欢
  • 2022-12-23
  • 2021-06-01
  • 2021-04-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
相关资源
相似解决方案