yaml配置文件demo

时间:2022-03-24 17:44:43
【文件属性】:
文件名称:yaml配置文件demo
文件大小:7KB
文件格式:RAR
更新时间:2022-03-24 17:44:43
python yaml作为配置文件时的解析和使用。笔者在这里整理了系统解析命令行参数——>读取配置参数——>根据参数开始工作的全过程,弄清楚yaml的作用,并写了一个demo。
【文件预览】:
配置文件demo
----cfg_defaults.py(670B)
----sysparser.py(2KB)
----test.txt(10B)
----程序说明.txt(1KB)
----demo_main.py(485B)
----.idea()
--------.gitignore(50B)
--------misc.xml(195B)
--------配置文件demo.iml(291B)
--------workspace.xml(4KB)
--------inspectionProfiles()
--------modules.xml(291B)
----__pycache__()
--------sysparser.cpython-38.pyc(1KB)
--------cfg_defaults.cpython-38.pyc(465B)
----config.yaml(50B)

网友评论