There's a Pythonic way to improve on this, though.
Bununla birlikte, bunu geliştirmek için Pythonic bir yol var.
Moreover, in order to be Pythonic, you should avoid using start, end, and step in a single slice.
Dahası, Pythonic olmak için, start, end ve step tek bir dilimde kullanmaktan kaçınmalısınız.
Is there a more Pythonic solution to this problem?
What you are asking for is the Pythonic equivalent of the following, which is the algorithm most programmers of lower-level languages would use
İstediğiniz şey, alt düzey dillerin çoğu programcısının kullanacağı algoritma olan, aşağıdaki Pythonic eşdeğeridir
lxml is a Pythonic binding for the libxml2 and libxslt libraries.
Python lxml libxml2 ve Libxslt'nin kütüphaneleri için bağlayıcı bir Pythonic olarak kütüphane davranır.
For Python 2.3 above, use enumerate built-in function since it is more Pythonic.
The classically Pythonic way, available in Python 2 and Python 3.0-3.4, is to do this as a two-step process
Python 2 ve Python 3.0-3.4'te bulunan klasik Pythonic yöntemi, bunu iki aşamalı bir işlem olarak yapmaktır
Is there any pythonic way to combine two dicts (adding values for keys that appear in both)?
İki dict'i birleştirmenin herhangi bir pythonic yolu var mı (her ikisinde de görünen anahtarlar için değerler ekleme)?
What is a clean, pythonic way to have multiple constructors in Python?
Python'da birden fazla kurucuya sahip olmanın temiz, Pythonic yolu nedir?
One of the most important reasons behind the origin of CherryPy is its compatibility with Python, and its pythonic interface allows developers to integrate it just like any other module available in Python.
CherryPy'nin kökeninin arkasındaki en önemli nedenlerden biri, Python ile uyumluluğudur ve onun pythonic arayüzü, geliştiricilerin python'da bulunan diğer modüller gibi entegre olmasını sağlar.
+1: sorted(d.values()) is easier to read/understand than Nas's sorted(dict1, key=dict1.get), and therefore more Pythonic.
+1: sıralanmış (d.values ()), Nas'ın sıralandığı (dict1, key = dict1.get) ve dolayısıyla daha Pythonic'den daha kolay okunur.
Is there a cleaner, nicer more pythonic way?