码迷,mamicode.com
首页 > 其他好文 > 详细

yaml file

时间:2018-05-15 00:22:51      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:rip   st3   ref   birt   music   value   script   orm   ring   

  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

标签:rip   st3   ref   birt   music   value   script   orm   ring   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!