本站源代码
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

122 Zeilen
1.9KB

  1. ---
  2. array:
  3. key1:
  4. - 1
  5. - 2
  6. - 3
  7. key2:
  8. - red
  9. - yellow
  10. - green
  11. key3:
  12. - - 1
  13. - 2
  14. - - 3
  15. - 4
  16. - 5
  17. key4:
  18. - - 1
  19. - 2
  20. - - a
  21. - b
  22. - c
  23. key5:
  24. - 1
  25. - 2
  26. - 3
  27. key6:
  28. - 1
  29. - 2
  30. boolean:
  31. 'False': false
  32. 'True': true
  33. datetime:
  34. key1: '1979-05-27T07:32:00Z'
  35. key2: '1979-05-27T00:32:00-07:00'
  36. key3: '1979-05-27T00:32:00.999999-07:00'
  37. float:
  38. both:
  39. key: 6.626e-34
  40. exponent:
  41. key1: 5.0e+22
  42. key2: 1000000
  43. key3: -0.02
  44. fractional:
  45. key1: 1
  46. key2: 3.1415
  47. key3: -0.01
  48. underscores:
  49. key1: 9224617.445991227
  50. key2: 1.0e+100
  51. fruit:
  52. - name: apple
  53. physical:
  54. color: red
  55. shape: round
  56. variety:
  57. - name: red delicious
  58. - name: granny smith
  59. - name: banana
  60. variety:
  61. - name: plantain
  62. integer:
  63. key1: 99
  64. key2: 42
  65. key3: 0
  66. key4: -17
  67. underscores:
  68. key1: 1000
  69. key2: 5349221
  70. key3: 12345
  71. products:
  72. - name: Hammer
  73. sku: 738594937
  74. - {}
  75. - color: gray
  76. name: Nail
  77. sku: 284758393
  78. string:
  79. basic:
  80. basic: "I'm a string. \"You can quote me\". Name\tJosé\nLocation\tSF."
  81. literal:
  82. multiline:
  83. lines: |
  84. The first newline is
  85. trimmed in raw strings.
  86. All other whitespace
  87. is preserved.
  88. regex2: I [dw]on't need \d{2} apples
  89. quoted: Tom "Dubs" Preston-Werner
  90. regex: "<\\i\\c*\\s*>"
  91. winpath: C:\Users\nodejs\templates
  92. winpath2: "\\\\ServerX\\admin$\\system32\\"
  93. multiline:
  94. continued:
  95. key1: The quick brown fox jumps over the lazy dog.
  96. key2: The quick brown fox jumps over the lazy dog.
  97. key3: The quick brown fox jumps over the lazy dog.
  98. key1: |-
  99. One
  100. Two
  101. key2: |-
  102. One
  103. Two
  104. key3: |-
  105. One
  106. Two
  107. table:
  108. inline:
  109. name:
  110. first: Tom
  111. last: Preston-Werner
  112. point:
  113. x: 1
  114. y: 2
  115. key: value
  116. subtable:
  117. key: another value
  118. x:
  119. y:
  120. z:
  121. w: {}
上海开阖软件有限公司 沪ICP备12045867号-1