【发布时间】:2016-02-23 03:46:12
【问题描述】:
09:00 在 YAML 中是什么意思?有官方定义吗?
我看不到anything about this syntax in the tags section of the spec。给定以下 YAML:
- 09:00
- 10:00
PyYAML 仅将第一个解释为字符串
>>> import yaml
>>> yaml.load("- 09:00\n- 10:00")
['09:00', 600]
而YAMLlint 将两者都转换为秒:
---
- 32400
- 36000
应该是什么?这定义好了吗?
【问题讨论】: