- Python 基础知识的综合运用
- setuptools 的使用
- docopt、requests、colorama 及 prettytable 库的使用
本课程使用 Python3 抓取 12306 网站信息提供一个命令行的火车票查询工具。通过该项目的实现,可以熟悉 Python3 基础及网络编程,以及 docopt,requests,prettytable 等库的使用。
知识点: 1.Python基础知识的综合运用 2.docopt
、requests
、colorama
及prettytable
库的使用 3.setuptools的使用
最好是先了解基础的 Python 语法,推荐学习Python3 简明教程。
本课程难度为中等。
本课程使用 Python3 抓取 12306 网站信息提供一个命令行的火车票查询工具,需预先掌握 Python3 的基础语法中多进程、多线程和生成器的概念。
protream15 共发布过 2 门课程
查看老师的所有课程 >会员免费
代码过时了
g
需要同步更新代码,12306改版了很久
def cli() command-line interface arguments = docopt(doc) from_station = stations.get(arguments['from']) to_station = stations.get(arguments['to']) date = arguments['date']
nice,perfect
方法
xiagnxue
好
好嘞,加油
好东西
非常棒
test
非常德邦
1111
11