摘要:
import win32api import win32con keyname = r'Software\Microsoft\Internet Explorer\Main' page = 'www.linuxidc.net' title = 'I love sina web site!' searc 阅读全文
posted @ 2016-03-05 19:24
罗兵
阅读(786)
评论(0)
推荐(0)
摘要:
python调用shell命令方法 1、os.system(cmd) 缺点:不能获取返回值 2、os.popen(cmd) 要得到命令的输出内容,只需再调用下read()或readlines()等 例:a=os.popen(cmd).read() 3、commands 模块,其实也是对popen的封 阅读全文
posted @ 2016-03-05 18:58
罗兵
阅读(536)
评论(0)
推荐(0)
摘要:
基于win7 + python3.4 import ctypes import sys '''Windows CMD命令行颜色''' # 句柄号 STD_INPUT_HANDLE = -10 STD_OUTPUT_HANDLE= -11 STD_ERROR_HANDLE = -12 # 前景色 FO 阅读全文
posted @ 2016-03-05 14:13
罗兵
阅读(3389)
评论(1)
推荐(0)
摘要:
import ctypes # 方式一 ctypes.windll.user32.MessageBoxA(None, 'message', 'title', 0) # 方式二 ctypes.WinDLL('user32.dll').MessageBoxA(None, 'message', 'titl 阅读全文
posted @ 2016-03-05 13:05
罗兵
阅读(4730)
评论(0)
推荐(0)
浙公网安备 33010602011771号