python读取Windows注册表
运行结果
代码
import winreg
def read_reg():
location = r"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders"
# 获取注册表该位置的所有键值
key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, location)
print("\n" + "-"*100 + "\n" + location + "
原创
2020-08-09 20:42:30 ·
2414 阅读 ·
1 评论