列表索引必须是整数或切片,而不是WebElemen尝试在页面上遍历给定类的所有项: for i in browser.find_elements_by_class_name("myClass"): elementContents=st ...2024-06-26 已阅读: n次