我的配置文件中有这样的东西(包含字符串列表的配置选项):
[filters] filtersToCheck = ['foo', '192.168.1.2', 'barbaz']
是否有更优雅(内置)的方法从filtersToCheck获取列表而不是删除括号,单引号,空格然后使用split()它?也许一个不同的模块?
split()
(使用python3.)
python list configuration-files configparser python-3.x
configparser ×1
configuration-files ×1
list ×1
python ×1
python-3.x ×1