摘要: cat old_file | tr '\t' ' ' > new_file 阅读全文
posted @ 2014-08-22 10:48 蹲在黄河里 阅读(164) 评论(0) 推荐(0)
摘要: 以前写JAVA、C++,对于缩进要求不是很严格,但PYTHON需要严格的缩进。有时对于代码的拷贝,需要多行缩进整理。首先 设置 .vimrcset shiftwidth=4然后vim esc下用v来选择多行增加缩进。 阅读全文
posted @ 2014-08-22 10:47 蹲在黄河里 阅读(214) 评论(0) 推荐(0)
摘要: 之前微博的登陆密码加密是三层sha1算法,现在更改为rsa2算法下面是python脚本,并把首页账号首页微博抓取下来。亲测可行。#! /usr/bin/env python# -*- coding: utf-8 -*-import sysimport urllib2import urllibimpo... 阅读全文
posted @ 2014-07-26 10:41 蹲在黄河里 阅读(317) 评论(0) 推荐(0)