From 3eda520f8f09fc250f1212c2f523fb4664812ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9A=AE=E6=99=A8?= Date: Fri, 29 Nov 2024 15:49:50 +0800 Subject: [PATCH 1/6] =?UTF-8?q?style:=20=F0=9F=92=84=20pretty=20display?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 67eb751..c6ffa8c 100755 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@

What the f*ck Python! 🐍

一些有趣且鲜为人知的 Python 特性.

-原始版本:| [English](https://github.com/satwikkansal/wtfpython) +原始版本: | [English](https://github.com/satwikkansal/wtfpython) 翻译版本: | [Vietnamese Tiếng Việt](https://github.com/vuduclyunitn/wtfptyhon-vi) | [Spanish Español](https://web.archive.org/web/20220511161045/https://github.com/JoseDeFreitas/wtfpython-es) | [Korean 한국어](https://github.com/buttercrab/wtfpython-ko) | [Russian Русский](https://github.com/frontdevops/wtfpython) | [German Deutsch](https://github.com/BenSt099/wtfpython) | [Add translation](https://github.com/satwikkansal/wtfpython/issues/new?title=Add%20translation%20for%20[LANGUAGE]&body=Expected%20time%20to%20finish:%20[X]%20weeks.%20I%27ll%20start%20working%20on%20it%20from%20[Y].) From 2420a6a400d8d5a0aaa3c631817e87130de85a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9A=AE=E6=99=A8?= Date: Fri, 29 Nov 2024 15:54:17 +0800 Subject: [PATCH 2/6] =?UTF-8?q?style:=20=F0=9F=92=84=20pretty=20display?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c6ffa8c..cff67f8 100755 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ 翻译版本: | [Vietnamese Tiếng Việt](https://github.com/vuduclyunitn/wtfptyhon-vi) | [Spanish Español](https://web.archive.org/web/20220511161045/https://github.com/JoseDeFreitas/wtfpython-es) | [Korean 한국어](https://github.com/buttercrab/wtfpython-ko) | [Russian Русский](https://github.com/frontdevops/wtfpython) | [German Deutsch](https://github.com/BenSt099/wtfpython) | [Add translation](https://github.com/satwikkansal/wtfpython/issues/new?title=Add%20translation%20for%20[LANGUAGE]&body=Expected%20time%20to%20finish:%20[X]%20weeks.%20I%27ll%20start%20working%20on%20it%20from%20[Y].) -其他模式: [Interactive](https://mybinder.org/v2/gh/robertparley/wtfpython-cn/master?labpath=irrelevant%2Fwtf.ipynb) +其他模式: | [Interactive](https://mybinder.org/v2/gh/robertparley/wtfpython-cn/master?labpath=irrelevant%2Fwtf.ipynb) [![WTFPL 2.0][license-image]][license-url] [![Commit id][commit-image]][commit-url] [![996.icu][996.icu-image]][996.icu-url] From 79dcb2b6557187533806fd893b8f9d8b5b2ce7cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9A=AE=E6=99=A8?= Date: Fri, 29 Nov 2024 15:56:54 +0800 Subject: [PATCH 3/6] =?UTF-8?q?fix:=20=F0=9F=90=9B=20strings-and-the-backs?= =?UTF-8?q?lashes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cff67f8..838e90f 100755 --- a/README.md +++ b/README.md @@ -1357,7 +1357,7 @@ True ```py >>> r'wt\"f' == 'wt\\"f' True - >>> print(repr(r'wt\"f') + >>> print(repr(r'wt\"f')) 'wt\\"f' >>> print("\n") From f528b32b4ffcbc889ea955c0ecaaf36d84b997b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9A=AE=E6=99=A8?= Date: Fri, 29 Nov 2024 16:00:44 +0800 Subject: [PATCH 4/6] =?UTF-8?q?style:=20=F0=9F=92=84=20Invert=20logo=20col?= =?UTF-8?q?or=20for=20dark=20theme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- images/logo-dark.png | Bin 0 -> 13052 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 images/logo-dark.png diff --git a/README.md b/README.md index 838e90f..b4cb421 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -

+

What the f*ck Python! 🐍

一些有趣且鲜为人知的 Python 特性.

diff --git a/images/logo-dark.png b/images/logo-dark.png new file mode 100644 index 0000000000000000000000000000000000000000..9d7791f3a30ae76158b3f33d84cdf0f31de2e3c2 GIT binary patch literal 13052 zcmbWe1z4QR(jbhxyJxTjcNqrv!5sz<4DK>mfZ!Se6Eq>X6A13^5)w2C!8K@Lf+Rq& z9nQV??C!T`cmIERnC6}Cdb^~ns=KO-1YK=aLOeP=6ciLfHL#LC3JNM5`QgFALiQZB zejh;o!Sw>0`l6uVlRtb=QL=MrP*5;_IU7P?5G_p*)YF~M#?I5$o-fed3ki*aA|)H> zWdn7!hXHKu9i2U-SrDDQEC6RaX%-VvEdebrMSCY_@G~EKgJ;@?&}Xht2|E^98GuwE z2swefJ3ksBG`Dc5BoCj?0GYH9tA;~!~pcmErOFHG4V z$;Q70@{iEIhCyET{QCC3o_;=1du4wlnXC`oc!3ms>}_D4K8Bv2ZvR;<-T#mb5EA7R z0B~s8K%G4vnBe>$Ua?oQf!Ry5Jggh9pa8FcsG*=32>B}_$}Io{2?+cPRLj%O*&*m3 zL4hDaf&U2;NkIaPlWvPw=c8zKsqoVq^IH_ep`%! z!uwuLN!~DU@hI0lo^8H;?Y_Iy>b+_4aWij7E!zI-Hx&!=&ftWQVnBoCVYLhny-uyI z+o;MLD+V0qf_>cQ{qwQ=gs*8la`s==pY@N-rBTj&w-xSw8dlHZsr4f`7i`gjJ)lrG z@SBF^25X7@P^CdcGMD%lL$0vs7ipuFUsm^zD5UvUERD)1CGO9prX;2~wH}j`DBv*5 zOZ2k@<6+>R8XQd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PATCH 5/6] =?UTF-8?q?fix:=20=F0=9F=90=9B=20links=20and=20typos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b4cb421..d0d8932 100755 --- a/README.md +++ b/README.md @@ -2607,7 +2607,7 @@ def get_middle(some_list): #### 💡 说明 -- - 这不是浮点精度错误,实际上,这种行为是故意的。从 Python 3.0 开始,`round()` 使用[银行进位法](https://en.wikipedia.org/wiki/Rounding#Round_half_to_even),其中 0.5 小数四舍五入到最接近的 **偶数** : +- - 这不是浮点精度错误,实际上,这种行为是故意的。从 Python 3.0 开始,`round()` 使用[银行进位法](https://en.wikipedia.org/wiki/Rounding#Rounding_half_to_even),其中 0.5 小数四舍五入到最接近的 **偶数** : ```py >>> round(0.5) @@ -3773,7 +3773,10 @@ def dict_size(o): * https://stackoverflow.com/questions/530530/python-2-x-gotchas-and-landmines * https://stackoverflow.com/questions/1011431/common-pitfalls-in-python * https://www.python.org/doc/humor/ +* https://github.com/cosmologicon/pywat#the-undocumented-converse-implication-operator * https://www.codementor.io/satwikkansal/python-practices-for-efficient-code-performance-memory-and-usability-aze6oiq65 +* https://github.com/wemake-services/wemake-python-styleguide/search?q=wtfpython&type=Issues +* WFTPython discussion threads on [Hacker News](https://news.ycombinator.com/item?id=21862073) and [Reddit](https://www.reddit.com/r/programming/comments/edsh3q/what_the_fck_python_30_exploring_and/). # 🎓 License/许可 From ea1f2dabb5430ae21bd7022549ff927c93589521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9A=AE=E6=99=A8?= Date: Fri, 29 Nov 2024 16:14:27 +0800 Subject: [PATCH 6/6] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20update=20following?= =?UTF-8?q?=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ README.md | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 720159b..b3721eb 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,3 +7,5 @@ * 2022-11-15 更新至[ea1e228](https://github.com/satwikkansal/wtfpython/commit/ea1e228407f2f7efc297e6b773aabf376f6def8e) * 2023-09-06 更新至[19d4b07](https://github.com/satwikkansal/wtfpython/commit/19d4b075152d93e5bc75c5d08279338a895cfa27) + +* 2024-11-29 更新至[ceec5fd](https://github.com/satwikkansal/wtfpython/commit/ceec5fddb9894d3f1756b9bd3a63067b1efe3d21) diff --git a/README.md b/README.md index d0d8932..c972cda 100755 --- a/README.md +++ b/README.md @@ -3808,8 +3808,8 @@ def dict_size(o): [![Commit id][commit-image]][commit-url] -[commit-url]: https://github.com/satwikkansal/wtfpython/commit/19d4b075152d93e5bc75c5d08279338a895cfa27 -[commit-image]: https://img.shields.io/badge/Commit-19d4b0-yellow.svg +[commit-url]: https://github.com/satwikkansal/wtfpython/commit/ceec5fddb9894d3f1756b9bd3a63067b1efe3d21 +[commit-image]: https://img.shields.io/badge/Commit-ceec5fd-yellow.svg ## 996.icu