Heim  >  Fragen und Antworten  >  Hauptteil

python爬虫 - python urllib中创建request时应直接传入post data还是在urlopen时再传入post data

文档里看到二者都可传入data,urlopen也支持request对象或者url

PHPzPHPz2740 Tage vor821

Antworte allen(1)Ich werde antworten

  • 巴扎黑

    巴扎黑2017-04-18 10:10:38

    如果你的request可以复用的话在request中传入比较好,其实没多大区别的.

    Antwort
    0
  • StornierenAntwort