The Zen of Python
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
* The Zen of Python [#q8cae881]
Pythonプログラマが持つべき心構えを簡潔にまとめたものがPyh...
全てのプログラミング言語に言える内容です。和訳サイトも豊...
ちなみに、"Zen"は日本語の「禅」だそうです。
$ python3
Python 3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0]...
Type "help", "copyright", "credits" or "license" for mor...
>>> import this
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious ...
Although that way may not be obvious at first unless you...
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a go...
Namespaces are one honking great idea -- let's do more o...
>>>
ChatGPTで和訳
Pythonの格言(The Zen of Python)
ティム・ピーターズ著
美しい方が、醜いより良い。
明示的な方が、暗黙的より良い。
シンプルな方が、複雑より良い。
複雑な方が、入り組んでいるより良い。
ネスト(入れ子)が深いより、フラットな方が良い。
密集しているより、まばらな方が良い。
読みやすさは重要である。
特別なケースのためにルールを破ってはいけない。
ただし、実用性が純粋さに勝ることもある。
エラーは、黙って通過すべきではない。
明示的に黙らせる場合を除いて。
曖昧さに直面したときは、推測しようとしてはいけない。
それを行う明白な方法が、ひとつ(できればただひとつ)ある...
ただし、その方法がすぐに明らかでない場合もある──あなたが...
「今」は「何もしない」よりは良い。
ただし、「今すぐ」はしばしば「しない」より悪い。
実装が説明しにくいなら、それは悪いアイデアだ。
実装が説明しやすいなら、それは良いアイデアかもしれない。
名前空間はとてつもなく素晴らしいアイデアだ──もっと活用し...
~
#htmlinsert(amazon_menu2.html);
終了行:
* The Zen of Python [#q8cae881]
Pythonプログラマが持つべき心構えを簡潔にまとめたものがPyh...
全てのプログラミング言語に言える内容です。和訳サイトも豊...
ちなみに、"Zen"は日本語の「禅」だそうです。
$ python3
Python 3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0]...
Type "help", "copyright", "credits" or "license" for mor...
>>> import this
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious ...
Although that way may not be obvious at first unless you...
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a go...
Namespaces are one honking great idea -- let's do more o...
>>>
ChatGPTで和訳
Pythonの格言(The Zen of Python)
ティム・ピーターズ著
美しい方が、醜いより良い。
明示的な方が、暗黙的より良い。
シンプルな方が、複雑より良い。
複雑な方が、入り組んでいるより良い。
ネスト(入れ子)が深いより、フラットな方が良い。
密集しているより、まばらな方が良い。
読みやすさは重要である。
特別なケースのためにルールを破ってはいけない。
ただし、実用性が純粋さに勝ることもある。
エラーは、黙って通過すべきではない。
明示的に黙らせる場合を除いて。
曖昧さに直面したときは、推測しようとしてはいけない。
それを行う明白な方法が、ひとつ(できればただひとつ)ある...
ただし、その方法がすぐに明らかでない場合もある──あなたが...
「今」は「何もしない」よりは良い。
ただし、「今すぐ」はしばしば「しない」より悪い。
実装が説明しにくいなら、それは悪いアイデアだ。
実装が説明しやすいなら、それは良いアイデアかもしれない。
名前空間はとてつもなく素晴らしいアイデアだ──もっと活用し...
~
#htmlinsert(amazon_menu2.html);
ページ名: