![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
冷月清晖
成熟,意味着历经磨难,体会痛楚,然后在失败与骄傲间把握一种平衡。
展开
-
Python获取磁盘空闲空间并写入日志
from ctypes import * import time import win32file run = True logfile = open('.\\log.out','w+');#open log file input = raw_input("Input a string for disk name like \'d:\' or other:")#input a disk name原创 2012-11-25 20:43:43 · 4572 阅读 · 0 评论 -
Python实现Telnet自动连接检测密码
最近在学习Python网络编程,这个代码实现了Telnet自动连接检测root用户密码,密码取自密码本,一个一个检测密码是否匹配,直到匹配成功,屏幕输出停止。原创 2014-11-06 16:23:25 · 11671 阅读 · 0 评论 -
Python获取CPU使用率、内存使用率、网络使用状态
注:需要安装psutil库 源代码如下: #!/usr/bin/env python # # $Id: iotop.py 1160 2011-10-14 18:50:36Z g.rodola@gmail.com $ # # Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved. # Use of this s原创 2012-12-05 08:45:34 · 61387 阅读 · 4 评论