90% of Python and Ruby code would be identical. Two areas where the two languages do diverge quite drastically is on the topic of metaprogramming and also the idea of explicit over implicit. In Ruby, metaprogramming (programs that write programs) is embraced, while in Python it is seen as something to be avoided for the most part, in favor of code simplicity and readability. This follows the Ruby philosophy of TIMTOWTDI (there is more than one way to do it), versus Python's "there should be one obvious way to do it". Ruby's open-endedness on this is nice in some regards.
雖然現在 Ruby 語言非常熱門, 不過本文作者卻在使用 Rails 開發幾個專案後又轉而使用 Python 的網頁框架, 最終選用 python 語言的原因有執行速度, 語言本身的支援, 方便的函式庫, 還有因為Ruby/Python 不同的編程哲學所造成的程式可讀性(可維護性)差異.