properties-file-to-json-file

时间:2021-03-18 18:18:13
【文件属性】:
文件名称:properties-file-to-json-file
文件大小:5KB
文件格式:ZIP
更新时间:2021-03-18 18:18:13
Python 属性文件到json文件 实用程序Python脚本,用于将扩展名为.properties的文件(例如Java Spring项目中的配置文件application.properties )或类似文件转换为由所有字符串键和字符串值组成的JSON文件。 要求 Python 3+ 。 怎么跑 从CLI运行以下命令: python properties_file_to_json_file.py file_name_with_single_extension.properties 请删除所有前导点,例如.\file_name_with_single_extension.properties的文件,否则该文件将被命名为.json 。 为什么要使用.properties文件? 因为我需要解析.properties文件 :smiling_face_with_sunglasses: 。实际上,唯一的要求是文件中的行应采用以下格式: string_without_s
【文件预览】:
properties-file-to-json-file-master
----.gitignore(2KB)
----README.md(2KB)
----LICENSE(1KB)
----properties_file_to_json_file.py(4KB)
----constant.py(17B)

网友评论