Zhonghui

每个不曾起舞的日子,都是对生命的辜负

User Tools

Site Tools


程序:pyyaml:pyyaml

Table of Contents

PyYAML

安装

python -m pip install PyYAML -i https://pypi.douban.com/simple

基础使用

import yaml
 
f = open('yaml_example_dict.yml', encoding='utf-8')
yaml_log = yaml.load(f)
print(yaml_log)
/var/www/DokuWikiStick/dokuwiki/data/pages/程序/pyyaml/pyyaml.txt · Last modified: 2022/12/28 04:08 by zh