From 1bfc3609a9957899d31110df76427515a103f012 Mon Sep 17 00:00:00 2001 From: Zhe Li <904016301@qq.com> Date: Thu, 29 Feb 2024 22:24:49 +0800 Subject: [PATCH 1/2] fixed c.md typo --- source/_posts/c.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/c.md b/source/_posts/c.md index 0e23de6..77b9db6 100644 --- a/source/_posts/c.md +++ b/source/_posts/c.md @@ -424,7 +424,7 @@ switch(day) { case Mon: puts("Monday"); break; case Tues: puts("Tuesday"); break; case Wed: puts("Wednesday"); break; - case Thursday: puts("Thursday"); break; + case Thurs: puts("Thursday"); break; default: puts("Error!"); } ``` From d2e2f2ec092dc80e9a21bfcf63e8a85c7a753afd Mon Sep 17 00:00:00 2001 From: shaowei Date: Sat, 2 Mar 2024 13:37:39 +0800 Subject: [PATCH 2/2] Update python.md 'dict' object has no attribute 'message' --- source/_posts/python.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/python.md b/source/_posts/python.md index 6c0f329..52470d7 100644 --- a/source/_posts/python.md +++ b/source/_posts/python.md @@ -1513,7 +1513,7 @@ def is_success(value) -> bool: return value in (0, "OK", True, "success") resp = dict(code=0, message="OK", data=[]) -successed: bool = converter(resp.message, mapper=is_success, default=False) +successed: bool = converter(resp["message"], mapper=is_success, default=False) ```