原文: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