pip install cookielib a échoué l'installation de python 3.x utilise cookielib dans python 2.x [une astuce pour l'obtenir]

Python 2.x cookielib peut installer des modules directement

import cookielib


#声明一个CookieJar对象实例来保存cookie
cookie = cookielib.CookieJar()

Le cookie Python 3.x est intégré dans le module http

from http import cookiejar

# 声明一个CooieJar对象实例来保存cookie
cookie = cookiejar.CookieJar()

Je suppose que tu aimes

Origine blog.csdn.net/weixin_45598506/article/details/112347211
conseillé
Classement