- import _winreg
- key = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, 'Software\\\\Microsoft\\\\Internet Explorer', 0, _winreg.KEY_READ)
- (value, valuetype) = _winreg.QueryValueEx(key, 'Download Directory')
- print value
- print valuetype
- #该片段来自于http://www.codesnippet.cn/detail/110120131513.html
来源: http://www.codesnippet.cn/detail/110120131513.html