上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页
  2015年9月30日
摘要: 0表示标准输入1表示标准输出2表示标准错误输出> 默认为标准输出重定向,与 1> 相同2>&1 意思是把 标准错误输出 重定向到 标准输出.&>file 意思是把 标准输出 和 标准错误输出 都重定向到文件file中举例(test.py)python test.py >right 2>&1 &>al... 阅读全文
posted @ 2015-09-30 15:37 星空守望者--jkmiao 阅读(410) 评论(0) 推荐(0)
  2015年9月29日
摘要: example: http://xyzp.haitou.cc/article/722427.html首先是直接下载好每个页面,可以使用 os.system( "wget "+str(url)) 或者urllib2.urlopen(url) ,很简单不赘述。然后,重头戏,进行信息抽取:#!/usr/... 阅读全文
posted @ 2015-09-29 17:11 星空守望者--jkmiao 阅读(440) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/word-frequency/Write a bash script to calculate the frequency of each word in a text filewords.txt.For simplicity sake, ... 阅读全文
posted @ 2015-09-29 11:10 星空守望者--jkmiao 阅读(342) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/move-zeroes/Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of... 阅读全文
posted @ 2015-09-29 10:51 星空守望者--jkmiao 阅读(162) 评论(0) 推荐(0)
  2015年9月23日
摘要: 其实很简单,却因为一些小问题,折腾不少时间,简要记录一下,以备后需。>> scrapy startproject lagou>> cd lagou>> scrapy gen lagou_jd www.lagou.com定义item在items.py中继续完善定义:# -*- coding: utf-... 阅读全文
posted @ 2015-09-23 12:06 星空守望者--jkmiao 阅读(503) 评论(0) 推荐(0)
  2015年9月15日
摘要: Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. For examp... 阅读全文
posted @ 2015-09-15 21:56 星空守望者--jkmiao 阅读(158) 评论(0) 推荐(0)
摘要: Given an array containingndistinct numbers taken from0, 1, 2, ..., n, find the one that is missing from the array.For example,Givennums=[0, 1, 3]retur... 阅读全文
posted @ 2015-09-15 20:58 星空守望者--jkmiao 阅读(188) 评论(0) 推荐(0)
摘要: Follow upforH-Index: What if thecitationsarray is sorted in ascending order? Could you optimize your algorithm?class Solution(object): def hIndex(s... 阅读全文
posted @ 2015-09-15 20:29 星空守望者--jkmiao 阅读(377) 评论(0) 推荐(0)
  2015年9月14日
摘要: latex 入门及使用LaTeX新人教程,30分钟从完全陌生到基本入门>> vim test.tex\documentclass[11pt,twoside,a4paper]{article} \usepackage{CJKutf8} % 支持中文楷体 \usepackage{i... 阅读全文
posted @ 2015-09-14 11:53 星空守望者--jkmiao 阅读(1431) 评论(0) 推荐(0)
摘要: kddcup2015,二分类,课程逃课预测。写了好久了,突然想起简单整理一下,以备后需。 step1,预处理,利用numpy和pandas库,数值化特征,简单而优雅 2. 使用各种机器学习方法进行建模,预测 3, 继续特征工程,加强提取特征,AOC值接近89% 阅读全文
posted @ 2015-09-14 10:08 星空守望者--jkmiao 阅读(3625) 评论(10) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页