2018/4/17

python简单几行代码查询快递信息

整个程序只需用到了两个库:json和requests。调用的是快递100-查快递,寄快递,上快递100 的api。 代码如下: 有很多网站都可以用api来调取数据,譬如车票、机票、快递、豆瓣、网易... 用Python写一个爬虫很简单,可…

  • python网络
  • 2018/4/17
  • Life
  • 2,479
  • 2018/2/23

    python之禅

    The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse…

  • python网络
  • 2018/2/23
  • Life
  • 79