Python3.10で導入されたmatch文を確認しました。便利そうな使い方を3種類メモしておきます。
先日公開した 「PyCon JP 2021」 1日目のカンファレンスレポートはいかがでしたでしょうか? 本レポートでは引き続き、 2日目の様子をご紹介します。 PyCon JPは日本国内外のPythonユーザーが一堂に会し、 互いに交流を深め、 知識を分け合い、 新たな可能性を ...
他の言語にはあったswitch文がPythonにはこれまでなく、if文の条件分岐で対応してきました。 過去、何度か追加機能として検討されてきましたが「if文があるから大丈夫」ということで見送られてきたこの機能ですが、この3.10でmatch case文が追加されることに ...
How-To Geek on MSN
Python 3.14.1 arrives with a pile of improvements
Python 3.14.1 also has a few improvements to building for iOS and iPadOS platforms. Binary modules can now be compiled with dynamic library linking, instead of Framework linking. The iOS testbed app ...
前回からだいぶ時間が空いてしまいましたが、こんにちは。今回は、”String(文字列)”の簡単で便利な使い方です。個人的に多くのファイルを扱うため、ファイル名を一括で変更したり、ファイル名や文字列から大事な情報だけ抜き出したりを多く行っ ...
Python’s new template strings, or t-strings, give you a much more powerful way to format data than the old-fashioned f-strings. The familiar formatted string, or f-string, feature in Python provides a ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する