求大神帮忙看一下代码为什么出错。

运行就是显示 ‘’root_html is not defined”

图片说明

root_html 没有定义, 你返回的值htmls,你倒数第四行把root_html 改成htmls就可以了

print(htmls)