吉多的 Python 『非同』於其他程式語言,居然把『空白』符號寫進了它的『文法』裡,竟然用『對齊的空白』表示程式區塊。如是種種『見地』,匯聚成一條稱作『非同的』pythonic Way 大道。吉多他的『中心思想』,集中的表現在由 Tim Peters 先生所寫的『 Python 的禪』,收錄在『 this 』模組 module 裡︰
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 way to do it.
總有一個,最好是唯一的一個,明白的作法
Although that way may not be obvious at first unless you’re Dutch.
即使起初那條道路並不明顯,除非你很「好辯」
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 good idea.
反之如果一件事怎麼做,很容易說明白,也許是個好想法
Namespaces are one honking great idea — let’s do more of those!
「名字空間」的理念──響亮著的偉大號角,就讓我們多多用它吧
─── 《『騛罿』── 非同的禪!!》
教學相長,『反饋』 feedback 能促進學習◎
新年伊始,介紹 Mu Way 正合宜也︰
About Mu
Mu is a Python code editor for beginner programmers based on extensive feedback given by teachers and learners.
Less is More.
Mu has only the most essential features, so users are not intimidated by a baffling interface.
Tread the Path of Least Resistance.
Whatever the task, there is always only one obvious way to do it with Mu.
Keep it Simple.
It’s quick and easy to learn Mu ~ complexity impedes a novice programmer’s first steps.
Have fun!
Learning should inspire fun ~ Mu helps learners quickly create and test working code.
Alan Kay‘s quote about learning to program summarizes Mu’s outlook. Mu aspires to be “the real thing” as a development environment for beginner programmers taking their first steps with Python.
那個古希臘字母
Mu (letter)
Mu (uppercase Μ, lowercase μ; Ancient Greek μῦ [mŷː], Greek: μι or μυ—both [mi]) or my[1] is the 12th letter of the Greek alphabet. In the system of Greek numerals it has a value of 40.[2] Mu was derived from the Egyptian hieroglyphicsymbol for water, which had been simplified by the Phoenicians and named after their word for water, to become 𐤌img (mem). Letters that arose from mu include the Roman M and the Cyrillic М.
在招喚『學習進化』呦!
Computer science
- μ, population size from which in each generation λ offspring will generate (the terms μ and λ originate from evolution strategy notation)
樹莓派已準備妥當☆
Mu, a new Python IDE for beginners
Mu is a very simple-to-use Python editor and IDE (integrated development environment) and this week, version 1.0 was released!
New Mu
Mu is designed to be as user-friendly and as helpful as possible for new Python programmers, presenting just the tools that are useful, such as:
- Syntax highlighting
- Automatic indentation
- In-built help
- Code checking
- Debugging
Great for new programmers
Mu is intended to be not the only Python IDE you’ll ever need, but the first one — the editor that helps you start your coding journey, but not necessarily the one you finish it with. So when you’re ready, you will have the skills and confidence to move on to using a more advanced Python IDE.
You can use Mu in a number of modes; modes make working with Mu easier by only presenting the options most relevant to what you’re using Mu for:
- Python 3 programming
- Programming a micro:bit
- Creating games using Pygame Zero
- Working with Adafruit’s Circuit range of boards
恰好品味程式樂趣矣☺