Т
if proxy.protocol == ProxyType.HTTPS:
proxy_type = ProxyType.HTTPS
elif proxy.protocol == ProxyType.HTTP:
proxy_type = ProxyType.HTTP
elif proxy.protocol == ProxyType.SOCKS5:
proxy_type = ProxyType.SOCKS5
Size: a a a
Т
if proxy.protocol == ProxyType.HTTPS:
proxy_type = ProxyType.HTTPS
elif proxy.protocol == ProxyType.HTTP:
proxy_type = ProxyType.HTTP
elif proxy.protocol == ProxyType.SOCKS5:
proxy_type = ProxyType.SOCKS5
q
Т
Т
q
s
if proxy.protocol == ProxyType.HTTPS:
proxy_type = ProxyType.HTTPS
elif proxy.protocol == ProxyType.HTTP:
proxy_type = ProxyType.HTTP
elif proxy.protocol == ProxyType.SOCKS5:
proxy_type = ProxyType.SOCKS5
q
Т
py3
import enum
class Day(enum.Enum):
MONDAY = 1
TUESDAY = 2
print(Day(2))
Day.TUESDAY
Т
q
q
Т
q
Т
q
Т
G
q
q
Т