【发布时间】:2015-07-09 09:01:00
【问题描述】:
x = []
with open(filechoice) as fileobj:
for word in fileobj:
for ch in word:
f = ord(ch)
x = x.append(ord(ch))
但它返回此错误:
"AttributeError: 'NoneType' object has no attribute 'append'"
我该如何解决这个错误?
【问题讨论】: