properties-file

How to export dictionary as a .property file in python

How to export dictionary as a .property file in python Question: How can a dictionary in python be exported to .properties file type in python? What I have: dict = {"key1":"sentence1", "key2":"sentence2"} The object dict should be saved as .properties file in python, the output should look like this: key1=sentence1 key2=sentence2 Asked By: pikachu || …

Total answers: 2