我正在更改附加到列表A的第一个字典中的值。问题是所有剩余的索引字典也都被更改了。
我尝试使用字典的字典,但是每一行的变化就是每一行的变化
import requests
url = "https://www.eltiempo.com/buscar?q=migrantes+venezolanos"
response = requests.get(url)
data = response.html
soup = BeautifulSoup(data, 'lxml')
tags = soup.find_all('a')
for tag in tags:
print(tag['href'])