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.
假设我们有这个config.cfg我正在读取的配置文件:
config.cfg
[test] key =
然后,我有以下代码:
configobj_file = ConfigObj("config.cfg") value = configobj_file['test']['key']
value这里是''。我将如何阅读None?
value
''
None