随笔分类 -  python爬虫

结巴分词python脚本
摘要:#-*-coding:utf-8-*- 2018-04-17 想要用绝佳的编程技术实现一些事情import jiebaimport osdef savefile(savepath,content): with open(savepath,'w',encoding="utf-8") as fp: fp 阅读全文

posted @ 2018-04-18 17:29 flyingwaters 阅读(287) 评论(0) 推荐(0)

eval() python 中的
摘要:eval 功能:将字符串str当成有效的表达式来求值并返回计算结果。 语法: eval(source[, globals[, locals]]) -> value 参数: source:一个Python表达式或函数compile()返回的代码对象 globals:可选。必须是dictionary l 阅读全文

posted @ 2018-03-31 21:10 flyingwaters 阅读(152) 评论(0) 推荐(0)

kaggle-titanic LR
摘要:https://github.com/flyingwaters/kaggle/blob/master/titanic_exercise_example.ipynb 阅读全文

posted @ 2018-03-12 21:35 flyingwaters 阅读(153) 评论(0) 推荐(0)

python exception的继承关系
摘要:https://docs.python.org/3/library/exceptions.html#exception-hierarchy 阅读全文

posted @ 2017-12-23 14:57 flyingwaters 阅读(170) 评论(0) 推荐(0)

python爬虫入门 爬图片的,用百度搜图,直接下,类型受限不过可以直接下,简单不少,下图片可以用
摘要:import re import requestsurl = 'https://image.baidu.com/search/index?tn=baiduimage&ipn=r&ct=201326592&cl=2&lm=-1&st=-1&fm=index&fr=&hs=0&xthttps=11111 阅读全文

posted @ 2017-09-11 15:17 flyingwaters 阅读(453) 评论(0) 推荐(0)

导航