БГ
Лямбда? Лямбда.
С чего бы нет-то?
Size: a a a
БГ
КБ
КБ
БГ
КБ
БГ
КБ
s
proxies = {
"http": "http://185.227.111.235:1080",
}
r = requests.get('https://2ip.ru/', proxies=proxies)
html = BeautifulSoup(r.text, 'lxml')
print(html.find(class_='ip').text) #выводит мой ip
КБ
proxies = {
"http": "http://185.227.111.235:1080",
}
r = requests.get('https://2ip.ru/', proxies=proxies)
html = BeautifulSoup(r.text, 'lxml')
print(html.find(class_='ip').text) #выводит мой ip
BA
proxies = {
"http": "http://185.227.111.235:1080",
}
r = requests.get('https://2ip.ru/', proxies=proxies)
html = BeautifulSoup(r.text, 'lxml')
print(html.find(class_='ip').text) #выводит мой ip
`
proxies = {s
`
proxies = {s
`
proxies = {requests.exceptions.SSLError: HTTPSConnectionPool(host='2ip.ru', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1122)')))
КБ
requests.exceptions.SSLError: HTTPSConnectionPool(host='2ip.ru', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1122)')))
E
БГ
from functools import reduce
from operator import mul
def factorial(n:int):
if n<1: raise ValueError("n must be greater or equal 1")
elif not isinstance(n,int):
raise TypeError("n must be int, not {}".format(type(n)))
return reduce(mul, range(1,n))
Д
s
КБ
K
s