小编Ras*_*ana的帖子

TypeError:"NoneType"类型的对象没有len()python

我一直收到这个错误

TypeError: object of type 'NoneType' has no len()
Run Code Online (Sandbox Code Playgroud)

这是代码:

def main():
    myList = [ ]
    myList = read_csv()
    ## myList = showList(myList)
    searchList = searchQueryForm(myList)
    if len(searchList) == 0:
        print("I have nothing to print")
    else:
        showList(searchList)
Run Code Online (Sandbox Code Playgroud)

python csv typeerror

0
推荐指数
1
解决办法
2万
查看次数

标签 统计

csv ×1

python ×1

typeerror ×1