YAML 语法增强
介绍
一、背景:从字符串形式到 YAML 原生结构
data:
attributes: '[
{name: "物理攻击", value: random.int(1, 100)},
{name: "法术攻击", value: random.int(1, 100)},
{name: "暴击率", value: random.int(1, 100)}
]'二、YAML 原生数据结构支持
data:
attributes:
- name: "物理攻击"
value: random.int(1, 100)
- name: "法术攻击"
value: random.int(1, 100)
- name: "暴击率"
value: random.int(1, 100)最后更新于