print(data_.find_all('loc')) print('---------------------------------') for x, y in enumerate(data_.find_all('loc')): print(x, y.string) list_url.append(y.string.replace('http://', 'http://www.'))
print('---------------------------------')
print('开始推送....', 'utf-8')
for x in list_url: print('当前推送条目为:' + x, 'utf-8') time.sleep(2) get_(x)