今天在测试时出现了AttributeEroor: 'list' object has no attribute 'clear'的报错

经过查询发现,原来是 python2.7 版本的列表没有clear()方法,把dataList.clear()改为dataList = []即可。