YAML 中映射键标识符中允许的字符? [英] Allowed characters in map key identifier in YAML?

查看:22
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆