您可以直接獲取iframe HTML,所需的只是地址: import requestsfrom bs4 import BeautifulSoups = requests.Session()iframe_src = "https://bscscan.com/token/generic-tokenholders2?m=normal&a=0xe56842ed550ff2794f010738554db45e60730371"r = s.get(iframe_src)soup = BeautifulSoup(r.content, "html.parser")for row in soup.select("tr:has(td)"): rank = row.find_all("td")[0].text[0:].strip() address = row.find_all("td")[1].text[0:].strip() amount = row.find_all("td")[2].text[0:].strip() percentage = row.find_all("td")[3].text[0:] print( " {:<3} {:<45} {:^35} {:>10} ".format(rank, address, amount, percentage) ) Pri