TGViewer
CleverDevs CleverDevs @cleverdevs · 11K subscribers
Post #1819 2.61K
یکی از چیزای باحالی که تو پایتون هست یه شعر به اسم  zen of python هستش که اصول کد زدن درست رو توش گفته . ذن پایتون رو  Tim Peters توی سال 2004 نوشته و تو پایتون گذاشته

برای  دیدن ذن کافیه این تیکه کد زیر رو توی پایتون بنویسید

import this


و این خروجی رو بگیرید
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!
CleverDevs are better than other devs


#python | peps
@CleverDevs - @CleverDevsGp
  • 😁 26
  • 👍 9
  • 👌 3
  • ❤ 2
  • 👎 1
More from @cleverdevs
  1. Oct 6, 2026شرکت Cloudflare نسخه پایدار ابزار EmDash رو عرضه کرده که جایگزین سریع و ایمن وردپرس برای س…
  2. Oct 3, 2026خیلی وقتا که از ایجنت‌ها برای کدنویسی استفاده می‌کنید، برای یه تسک ساده یا کلی پکیج اضافه…
  3. Oct 2, 2026کلاینت ZedSecure رو روی AUR منتشر کردم. الان می‌تونید از اونجا نصبش کنید. https://aur.arch…
  4. Oct 1, 2026یکی از کامند‌های بدرد بخور لینوکس که برای دیباگ کردن میتونه کمکتون کنه strace (مخفف system…
  5. Sep 24, 2026شرکت کوالکام اعلام کرده قرار هست پشتیبانی رسمی لپتاپهای مجهز به چیپ Snapdragon X2 از لینوک…
  6. Sep 23, 2026توی کدای کرنل برای سیستم‌کال reboot شما باید دوتا magic value به تابع بدید تا کرنل برای ای…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →