随笔分类 -  Python源码

收集整理常用Python源码。
摘要:import tkinterfrom win32com.shell import shell, shellconfrom win32con import FILE_ATTRIBUTE_NORMAL def extension_to_bitmap(extension): """dot is mandatory in extension""" flags = shellcon.SHGFI_SMALLICON | \ shellcon.SHGFI_ICON | \ shellcon.SHGFI_USEFILEATTRIBUTES re... 阅读全文
posted @ 2014-03-14 17:01 @烈风 阅读(359) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python #coding:utf-8 import _winreg key = "想要获取的键" open_key=_winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, key) countkey=_winreg.QueryInfoKey(open_key)[0] 阅读全文
posted @ 2013-10-22 19:26 @烈风 阅读(608) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python #coding:utf-8 import os path = os.path.dirname(amodule.__file__) 阅读全文
posted @ 2013-10-22 19:07 @烈风 阅读(254) 评论(0) 推荐(0)