Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2404235
  • 博文数量: 328
  • 博客积分: 4302
  • 博客等级: 上校
  • 技术积分: 5486
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-01 11:14
个人简介

悲剧,绝对的悲剧,悲剧中的悲剧。

文章分类

全部博文(328)

文章存档

2017年(6)

2016年(18)

2015年(28)

2014年(73)

2013年(62)

2012年(58)

2011年(55)

2010年(28)

发布时间:2016-05-11 22:30:34

Purpose:Spawn and communicate with additional processes.Available In:2.4 and laterThe subprocess module provides a consistent interface to creating and working with additional processes. It offers a higher-level int.........【阅读全文】

阅读(1744) | 评论(0) | 转发(0)

发布时间:2016-03-08 00:41:52

Entering the passphrase is annoying when using git commands, and even worse if you need to establish some automation scripts. Here are some methods to solve this issue.Adding your SSH key to the ssh-agentEnsure ssh-agent is enabled:# start the ssh-agent in the background eval "$(ssh-.........【阅读全文】

阅读(1294) | 评论(0) | 转发(0)

发布时间:2016-02-11 23:06:11

Property is a recommended way to set and get member variables, especially private ones. The reason is that all attributes are public in Python. Starting names with an underscore or two is just a warning that the given attribute is an implementation detail that may not stay the same in future .........【阅读全文】

阅读(1287) | 评论(0) | 转发(0)

发布时间:2016-01-28 19:16:20

Git SetupI would recommend editing your ~/.gitignore_global file and adding the following lines (to eliminate common system-created files while working in your Git repositories):*~.*.swp.DS_StoreAdd the following to your ~/.gitconfig file:[user]    name = <You.........【阅读全文】

阅读(1656) | 评论(0) | 转发(0)

发布时间:2015-12-15 13:21:48

Python 中的 paramiko模块是一个非常方便好用的连接远端 ssh 通道的方法。使用起来也很方便:import paramiko ssh = paramiko.SSHClient()ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())ssh.connect('localhost',username=name,password=pw) 实践中,遇到.........【阅读全文】

阅读(28033) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册