# birthday: 2020/12/21 # dog: #包含对象时,则值应该与类中的字段名一致 # name: wangcai #类似于person.dog.name # age: 10 #List有三种写法。 #第一种:[{},{},...] # lists: [{name: 'test1', age: 1},{name: 'test2', age: 2}] #第二种:-,换行后键值 # - # name: test1 # age: 1 # - # name: test2 # age: 2 #第三种:- {} # - {name: test1,age: 1} # - {name: test2,age: 2} # stringList: [手打,多少度] # - sad # - 222 # Map两种写法。 # 第一种:{key1:{},key2:{}...} #基本对象就是{key1: value1,....} # maps: {k1: v1,k2: v2} # dogMap: {str1: {name: d1, age: 1},str2: {name: d2, age: 2}} #第二种:按照对象缩进 # str1: # name: d1 # age: 1 # str2: # name: d2 # age: 2