• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
oooooolr
You can do anything but not everything. ——David Allen
博客园    首页    新随笔    联系   管理    订阅  订阅
2019年4月4日
SQL kaggle learn : WHERE AND
摘要: WHERE trip_start_timestamp Between '2017-01-01' And '2017-07-01' and trip_seconds > 0 and trip_miles > 0 WHERE trip_start_timestamp > '2017-01-01' and trip_start_timestamp 0 AND trip_miles > 0 ... 阅读全文
posted @ 2019-04-04 16:49 oooooolr 阅读(186) 评论(0) 推荐(0)
SQL kaggle learn with as excercise
摘要: rides_per_year_query = """ SELECT EXTRACT(YEAR FROM trip_start_timestamp) AS year ,COUNT(unique_key) AS num_trips FROM `bigquery-public-data.chicago_taxi_trips.taxi_trips` GROUP BY year ORDER BY year... 阅读全文
posted @ 2019-04-04 11:37 oooooolr 阅读(167) 评论(0) 推荐(0)
2019年4月2日
SQL count(1)
摘要: If you are ever unsure what to put inside a COUNT() aggregation, you can do COUNT(1) to count the rows in each group. Most people find it especially r 阅读全文
posted @ 2019-04-02 20:58 oooooolr 阅读(260) 评论(0) 推荐(0)
sql where 里面判定要加 ' '
摘要: WHERE year>=2010 and year<=2017 and indicator_code = 'SE.XPD.TOTL.GD.ZS' 阅读全文
posted @ 2019-04-02 20:09 oooooolr 阅读(228) 评论(0) 推荐(0)
2019年3月24日
kaggle learn python
摘要: def has_lucky_number(nums): return any([num % 7 == 0 for num in nums]) def menu_is_boring(meals): """Given a list of meals served over some period of time, return True if the same mea... 阅读全文
posted @ 2019-03-24 21:47 oooooolr 阅读(308) 评论(0) 推荐(0)
pandas
摘要: df = reviews.loc[:99,['country','variety']] or df = reviews.loc[[1,2,3,4],['country','variety']]df = reviews.loc[[0,1,10,100],['country','province','region_1','region_2']] 两颜色不能互换,必须index在前iloc index... 阅读全文
posted @ 2019-03-24 19:17 oooooolr 阅读(165) 评论(0) 推荐(0)
2019年3月18日
实习僧的字体加密破解
摘要: 1,https://www.hitoy.org/tool/file_base64.php 选择base64编码生成文件格式选择ttf 2,https://fontdrop.info/ 上传ttf 鼠标悬停会显示所有的被加密字和对应关系 阅读全文
posted @ 2019-03-18 21:13 oooooolr 阅读(526) 评论(0) 推荐(0)
2019年3月9日
cookiejar
摘要: referer:https://www.cnblogs.com/why957/p/9297779.html文章介绍了四种模拟登陆方法 yield Request()可以将一个新的请求返回给爬虫执行 在发送请求时cookie的操作, meta={'cookiejar':1}表示开启cookie记录,首 阅读全文
posted @ 2019-03-09 11:54 oooooolr 阅读(1224) 评论(0) 推荐(0)
2019年3月8日
煎蛋ooxx
摘要: pipeline.py settings.py 算是第一个运行成功的scrapy吧,特别开心 阅读全文
posted @ 2019-03-08 20:04 oooooolr 阅读(229) 评论(0) 推荐(0)
纪念一下学写pipeline时脑子里的坑
摘要: 用的是filespipeline,用的存储地址是images的地址 测试煎蛋ooxx首页,shell测试的时候返回很多列表,但是实际爬的时候一直只返回一条,很烦,一直测一直测,就是不行,后来才发现,首页已经刷新了就是只有一条。。。。 def file_path 写不好的话,会被def item_co 阅读全文
posted @ 2019-03-08 15:58 oooooolr 阅读(294) 评论(0) 推荐(0)
下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3