问答详情
源自:4-3 5星图书排行榜数据抓取-代码逻辑编写

一运行程序报错

请问为什么运行下载代码的程序时,会出现这样的情况呢:

Traceback (most recent call last):

  File "C:\Users\yuanqi\Desktop\dangdang.py", line 102, in <module>

    main()

  File "C:\Users\yuanqi\Desktop\dangdang.py", line 97, in main

    result = d.parse_item(items=items)

  File "C:\Users\yuanqi\Desktop\dangdang.py", line 50, in parse_item

    for item in items:

TypeError: 'NoneType' object is not iterable


提问者:祺小鱼 2020-12-21 23:38

个回答

  • 祺小鱼
    2020-12-26 18:20:07

    已解决