YAML 中映射键标识符中允许使用的字符? [英] Allowed characters in map key identifier in YAML?
本文介绍了YAML 中映射键标识符中允许使用的字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
YAML 中的键(即 example: "Value"
中的 example
)中允许和不允许哪些字符?
Which characters are and are not allowed in a key (i.e. example
in example: "Value"
) in YAML?
推荐答案
任何字符(如果由单引号example"或双引号example"正确引用).请注意,键不必是标量(示例").它可以是列表或地图.
Any character (if properly quoted by either single quotes 'example' or double quotes "example"). Please be aware that the key does not have to be a scalar ('example'). It can be a list or a map.
这篇关于YAML 中映射键标识符中允许使用的字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文