当前位置:网站首页>Yaml syntax introduction and various data types
Yaml syntax introduction and various data types
2022-07-23 08:26:00 【Bulut0907】
Catalog
1. Introduce
1. YAML Grammar introduction
YAML Is a similar to XML、JSON The Markedness of language . It emphasizes “ data ” Centered , It doesn't focus on markup language
YAML The syntax of is mainly as follows :
- Case sensitive
- Use indentation to indicate hierarchy
- Indent using spaces , As far as possible need not tab
- The number of indented spaces doesn't matter , Just align the elements at the same level to the left
:Add a space after it- # Notation
- Multisegment yaml Put the configuration in a file , Use in the middle
---Separate
have access to yaml to json Website Test and verify
2. YAML data type
2.1 Constant : A single 、 Values that cannot be split anymore
- Boolean type
key: true
key: True
- integer
key: 123
- Floating point type
key: 3.14
- null type
key: ~
- The date type
key: 2022-05-13
- Time type
key: 2022-05-13T15:02:31+08.00
- String type
key: haha # If there is a special symbol in the middle of the string , Wrap with double or single quotation marks
# Write one line into multiple lines , Wrap in quotation marks , Add... At the end \
key: "part1\
part2"
2.2 object : Set of key value pairs
# Form 1 ( recommend )
person:
name: zhang_san
age: 18
# Form 2
person: {name: zhang_san, age: 18}
2.3 Array : A set of values in order
# Form 1 ( recommend )
address:
- Beijing
- Shanghai
# Form 2
address: [ Beijing , Shanghai ]
边栏推荐
- Mria + RLOG 新架构下的 EMQX 5.0 如何实现 1 亿 MQTT 连接
- odbc excel--2022-07-21
- 什么是NFT?你不会还不知道吧!
- 什么时候使用UserCF,什么时候使用ItemCF?
- Networkx visualizes graphs
- 【arXiv2022】GroupTransNet: Group Transformer Network for RGB-D Salient Object Detection
- Redis persistence operation (RDB, AOF)
- flink通过ProcessFunction和定时器onTimer实现一个窗口累加的功能
- This is not a true sense of the meta universe, which should have its own distinctive characteristics and unique development logic
- Understand the interrupt system in STM32 in simple terms -- from principle to simple engineering examples -- nanny level tutorial
猜你喜欢
随机推荐
Flink高级API(三)
深入浅出地理解STM32中的中断系统——从原理到简单工程示例——保姆级教程
y74.第四章 Prometheus大厂监控体系及实战 -- PromQL简介和监控pod资源(五)
QgrapicsView实现画板
flink通过ProcessFunction和定时器onTimer实现一个窗口累加的功能
BufferedInputStream缓冲区填充问题
Text align: center centered
Istio架构扩展机制
阿里云国际版忘记会员名或登录密码,怎么办?
构造函数的初始化、清理及const修饰成员函数
押注全场景,荣耀胜算几何?
Jedis operation redis
Shell变量、系统预定义变量$HOME、$PWD、$SHELL、$USER、自定义变量、特殊变量$n、$#、$*、[email protected]、$?、env看所有的全局变量值、set看所有变量
Send benefits again! Calendar applet source code
PostgreSQL database master-slave deployment master database suspended restore master database
来,滑动到下一个小姐姐
js 正则删除span标签以及标签里面的内容
odbc excel--2022-07-21
Brief analysis of several key technical points of traditional bank bill printing system
C语言中的字符串









