首页 > 其他 > 详细

yaml file

时间:2018-05-15 00:06:03      阅读:211      评论:0      收藏:0      [点我收藏+]
  1.   Why Need Yaml File 

desinged to be clean and easy to be read   .yml or .yaml 

2 example 

person:

name: mike
occupation: programmer
age: 29
gpa: !!str 3.5 # convert to string !!
fav_num: 1e+10
male: true
birthday: 1989-04-06 11:10:00
flaws: null
hobbies:
- football
- music
football: ["lfc","bfc"] # list
friends:
- name: "steph"
age: 22
- {name: "adam",age: 22}
description: > # donot preserve format
test1
test2
test3
signature: | # | preserve format
test4
test5
name: &refpoint  
id: *refpoint    #  refer to another value , and give the value to id 

 

yaml file

原文:https://www.cnblogs.com/anyu686/p/9038635.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!