我对这些代码有问题。
if tdinst[0].string in features:
nameval=tdinst[0].string
value=tdinst[1].string
print type(value)
if type(value) is not None:
print"it should not come here"
value=value.replace("\n","")
value=value.replace("\t","")
我得到'NoneType'对象没有属性'replace'。为什么它会进入第二个if条件?