diff --git a/docs/appendix/01_use_cases.md b/docs/appendix/01_use_cases.md index ff0f0ac..7497f30 100644 --- a/docs/appendix/01_use_cases.md +++ b/docs/appendix/01_use_cases.md @@ -14,5 +14,5 @@ | 文章标题 | 简要介绍 | |---|---| | [Python With 关键字和语句](https://www.ossez.com/t/python-with/13387) | 针对 with 关键字的使用进行了一些解答 | -| [Python DataTime 日期处理](https://www.ossez.com/t/python-datatime/13388) | 关于日期函数处理的一些小的介绍和讨论 | +| [Python DateTime 日期处理](https://www.ossez.com/t/python-datatime/13388) | 关于日期函数处理的一些小的介绍和讨论 | | [Python 日期格式和时间以及当前时间和时间戳](https://www.ossez.com/t/python/13389) | 关于时间和当前时间的时间戳的获取 | diff --git a/tests/Json2Yaml.py b/tests/Json2Yaml.py index 0862022..7aab081 100644 --- a/tests/Json2Yaml.py +++ b/tests/Json2Yaml.py @@ -34,4 +34,4 @@ with open(json_filename) as json_file: # Write to YAML with open(yaml_filename, 'w') as yaml_file: - yaml.dump(data, yaml_file, allow_unicode=True) + yaml.dump(data, yaml_file, allow_unicode=True, default_flow_style=False) diff --git a/tests/resources/black_rock_test.json b/tests/resources/black_rock_test.json index e26a7fc..672d7c2 100644 --- a/tests/resources/black_rock_test.json +++ b/tests/resources/black_rock_test.json @@ -1,5 +1,5 @@ { "first_name": "John", "last_name": "Doe", - "date_of_birth": "1/1/2021" + "date_of_birth": "1/1/1955" } \ No newline at end of file