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.
Windows 注册表可能包含名称带有嵌入空值的键
当我打电话时,_winreg.OpenKey(key, subkey_string_with_embbeded_null)我收到以下错误:
_winreg.OpenKey(key, subkey_string_with_embbeded_null)
TypeError: OpenKey() argument 2 must be string without null bytes or None, not str
Q1:python _winreg 模块有不能打开名字嵌入空值的键的限制是什么意思?
Q2:我如何绕过这个限制?
Q1:对。
Q2:下载安装win32all。