Python的AttributeError: module 'base64' has no attribute 'b64decode'問題

今天打算寫一個base64的加密解密腳本,結果出現AttributeError: module ‘base64’ has no attribute 'b64decode’錯誤。 解決辦法:我的這個py文件名叫「base64.py」,與包base64重合了,因此出現混亂,所以只要把名字改成「base64加密.py」後,問題得到解決。
相關文章
相關標籤/搜索