【发布时间】:2017-10-13 20:26:08
【问题描述】:
我想打印以下布局:
extra:
identifiers:
biotools:
- http://bio.tools/abyss
我正在使用此代码添加节点:
yaml_file_content['extra']['identifiers'] = {}
yaml_file_content['extra']['identifiers']['biotools'] = ['- http://bio.tools/abyss']
但是,相反,我得到了这个输出,它将工具封装在 [] 中:
extra:
identifiers:
biotools: ['- http://bio.tools/abyss']
我尝试了其他组合但没有奏效?
【问题讨论】:
标签: python pyyaml ruamel.yaml