在写python脚本时遇到AttributeError: ‘NoneType’ object has no attribute ‘append’
a=[]
b=[1,2,3,4]
a = a.append(b) '''会报错,改为a.append(b)'''
原因:因为没有返回值
在写python脚本时遇到AttributeError: ‘NoneType’ object has no attribute ‘append’
a=[]
b=[1,2,3,4]
a = a.append(b) '''会报错,改为a.append(b)'''
原因:因为没有返回值