Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想读取一个 YML 文档,通过修改内存中的一些节点来过滤它,然后用发射器将它吐出来。问题是 YAML::Node 似乎被设计为只读的。有没有办法替换我缺少的节点值(在这种情况下为标量)?
我对 YAML 所做的是读取文件,然后将 YAML 数据放入我的向下数据结构中。也许不是你要找的,但这是一种方式。