学习一点点

锁定目标 全力以赴

导航

2019年3月20日 #

python提示AttributeError: 'NoneType' object has no attribute 'append'【转发】

摘要: 在写python脚本时遇到AttributeError: 'NoneType' object has no attribute 'append'a=[]b=[1,2,3,4]a = a.append(b)执行一次后发现a的类型变为了NoneType。下次执行时就会出现如题所示的错误。把a = a.a 阅读全文

posted @ 2019-03-20 10:06 学习一点点 阅读(4619) 评论(0) 推荐(0)