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.
如何在 YAML 中编写一个字典(映射),其中一个键具有空字符串作为其值?
key:
被解析为 null -
%YAML 1.1 --- !!map { ? !!str "key" : !!null "null", }
正确答案是:
key: ""