class后面是两个分开的属性,你只要写一个就行了。写俩就不能用空格。rs = web.find_element_by_class_name('rate-count').text
去学下xpath获取元素吧