原文:Python問題——AttributeError: 'NoneType' object has no attribute 'append'

python提示AttributeError: NoneType object has no attribute append Python問題 AttributeError: NoneType object has no attribute append 把lt lt.append word 改為lt.append word 后問題解決。 原因:append會修改a本身,並且返回None。不能把 ...

2019-07-31 22:45 0 3000 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM