From 5920259b863fdb0421301f212b448156c64a0bbb Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Fri, 12 Mar 2021 16:08:15 -0500 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=92=8C=20yaml=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E8=BE=93=E5=87=BA=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Json2Yaml.py | 2 +- tests/resources/black_rock_test.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 From f384f7e7000e01dd848c483bb62ebb8979bfb9a8 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Fri, 12 Mar 2021 19:24:45 -0500 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E7=9A=84=E9=94=99=E5=88=AB=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/appendix/01_use_cases.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) | 关于时间和当前时间的时间戳的获取 |