ConfigParser vs. import config

前端 未结 4 959
北荒
北荒 2021-02-05 01:42

ConfigParser is the much debated vanilla configuration parser for Python.
However you can simply import config where config.py has python code whic

4条回答
  •  逝去的感伤
    2021-02-05 01:50

    "import config" is very simple, flexible and powerfull but, since it can do anything, it might be dangerous if the config.py is not in a safe place.

提交回复
热议问题