1

说我有:

item:
  field: value
  another: another

有什么方法可以让我以这种形式将它放入数组中:

[value, another]

在java中使用SnakeYAML可以轻松完成吗?

4

1 回答 1

2
item: [value, another]

或者

item:
  - value
  - another
于 2011-11-25T11:35:32.330 回答