How to save application settings in a config file?

前端 未结 3 1108
萌比男神i
萌比男神i 2020-12-15 12:24

I am developing a program that has a settings window in which I can change various parameters for my program. What is the best way to read/save them in some kind of config f

3条回答
  •  不知归路
    2020-12-15 12:53

    Another popular option for configuration files is JSON - it's a simple notation which has good support from a wide range of languages.

    Python has the json module in the standard library, which makes it very easy.

提交回复
热议问题