Properties file in python (similar to Java Properties)

后端 未结 25 2856
故里飘歌
故里飘歌 2020-11-29 17:41

Given the following format (.properties or .ini):

propertyName1=propertyValue1
propertyName2=propertyValue2
...
propertyNam         


        
25条回答
  •  醉话见心
    2020-11-29 18:27

    For .ini files there is the ConfigParser module that provides a format compatible with .ini files.

    Anyway there's nothing available for parsing complete .properties files, when I have to do that I simply use jython (I'm talking about scripting).

提交回复
热议问题