Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
import cryptography from cryptography import x509 from cryptography.hazmat.backends import default_backend cert = cryptography.x509.load_der_x509_certificate(fil, default_backend())
import cryptography from cryptography import x509 from cryptography.hazmat.backends import default_backend cert = cryptography.x509.load_der_x509_certificate(fil, default_backend()) print(cert.extensions[1])
#!/usr/bin/python3.7
async def select_all (par, part): async with aiosqlite.connect('db') as conn: cursor = await conn.execute("SELECT * FROM table WHERE a=b LIMIT %s OFFSET %s" % (par, part) row = await cursor.fetchall() return row