使用yaml.dump()方法写入,代码展示如下:. # @author: 给你一页白纸from ruamel import yaml data = { "str": "Hello world.
確定! 回上一頁