我一直收到这个错误
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)