04 2015 档案
摘要:一、staticmethod(function)Return a static method for function.A static method does not receive an implicit first argument. To declare a static method, u...
阅读全文
摘要:with从Python 2.5就有,需要from __future__ import with_statement。自python 2.6开始,成为默认关键字。在What's new in python2.6/3.0中,明确提到:The ‘with‘ statement is a control-f...
阅读全文
摘要:git 作为开源项目首选版本管理软件,必然其优势不容小觑,下面总结一下初次解除用到的一些技能1. 基本命令介绍git help branch 查看branch帮助文档git branch -a 列出当前所有分支git branch good_proj 创建分支good_projgit ...
阅读全文
摘要:1. sed可以替换给定的文本中的字符串,可以利用正则表达式进行匹配$ sed 's/pattern/replace_string/' file或者$ cat file | sed 's/pattern/replace_string/' file使用-i选项,可以将替换的结果应用于原文件,也可以借助...
阅读全文

浙公网安备 33010602011771号