lis=soup.find_all(name="div",attrs={"id":"row275"})
这两行代码没有问题,应该是你html没有爬取到正确的内容
输出下html看看有没有<div id="row275">元素
from bs4 import BeautifulSoup
html = """
<!doctype html>
<html lang="en">
<head>
</head>
<body>
<div id="row275">abc</div>
</body>
</html>
"""
soup=BeautifulSoup(html,"lxml")
lis=soup.find_all(name="div",attrs={"id":"row275"})
print(lis)
这样可以获取到内容