随笔分类 - 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...
阅读全文
摘要:
#!/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]
阅读全文
#!/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]
阅读全文
摘要:
#!/usr/bin/env python
#coding:utf-8
import os
path = os.path.dirname(amodule.__file__)
阅读全文
#!/usr/bin/env python
#coding:utf-8
import os
path = os.path.dirname(amodule.__file__)
阅读全文

浙公网安备 33010602011771号