- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 python监测程序状态,定时重启程序
#!/usr/bin/evn python# -*- coding:utf-8 -*-import subprocess,time,sysTIME = 10 #程序状态检测间隔(单位:分钟)CMD = "calc.exe" #需要执行程序的绝对路径,支持jar 如:D:\\calc.exe 或者D:\\test
2014-12-11 09:24:49
6549
原创 Python 读取excle文件所有内容[xlrd模块]
from xlrd import open_workbookimport timestart = time.time()print u"正在打开Excel文件……"workbook = open_workbook('D:\\sst-DEMS_user.xls')print u"时间:", time.time() - startprint workbook.sheet_names()
2014-12-05 10:56:46
1070
原创 VC和Linux C下可用的控制台进度代码
#include #ifdef _WIN32#include #define mysleep(n) Sleep(n*1000) #else#include #define mysleep(n) sleep(n)#endifvoid progressBar(int n){ static int currentNumber = 0; if(n <= currentNumber)
2014-07-17 13:53:09
492
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人