Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个需要我将 DWORD 值写入注册表的项目。我知道如何写其他值,但我不确定如何写这个值。
我需要将其设置为 1。如何将 _winreg 与 Python 一起使用?
使用 SetValueEx() 设置值和类型,类型在这里列出:http: //docs.python.org/library/_winreg.html#value-types 你可能想要 _winreg.REG_DWORD