会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
When you look into the abyss, the abyss looks into you.
博客园
首页
新随笔
联系
订阅
管理
2018年5月6日
python提示AttributeError: 'NoneType' object has no attribute 'append'
摘要: 在写python脚本时遇到AttributeError: 'NoneType' object has no attribute 'append' 执行一次后发现a的类型变为了NoneType。 下次执行时就会出现如题所示的错误。 把a = a.append(b)改为a.append(b)后问题解决。
阅读全文
posted @ 2018-05-06 23:19 Operater
阅读(51317)
评论(0)
推荐(1)
公告