{# canonical_base is the OWNING tenant's origin: all 16 Peasy domains serve the same catalogue, so a page rendered by a non-owner points its canonical at the owner instead of competing with it. Falls back to this site for static/self-owned pages. #}
🍋
Menu
.py Code

Python स्क्रिप्ट (.py)

Python प्रोग्रामिंग भाषा में लिखी गई सोर्स कोड फ़ाइलें। Python स्क्रिप्ट्स वेब डेवलपमेंट, डेटा साइंस, ऑटोमेशन और मशीन लर्निंग सहित विभिन्न क्षेत्रों में उपयोग की जाती हैं।

MIME Type

text/x-python

प्रकार

टेक्स्ट

संपीड़न

दोषरहित

लाभ

  • + Extremely readable syntax emphasizing clarity
  • + Massive ecosystem — PyPI has 500K+ packages
  • + Dominant in data science, ML, and AI
  • + Cross-platform with broad standard library

हानियाँ

  • Slower execution than compiled languages (C, Go, Rust)
  • Global Interpreter Lock (GIL) limits CPU-bound threading
  • Dynamic typing can lead to runtime type errors

.PY कब उपयोग करें

वेब डेवलपमेंट (Django, Flask), डेटा साइंस (pandas, NumPy), मशीन लर्निंग (TensorFlow, PyTorch), ऑटोमेशन स्क्रिप्ट्स, और API डेवलपमेंट।

तकनीकी विवरण

Python फ़ाइलें (.py) UTF-8 एन्कोडेड प्लेन टेक्स्ट होती हैं। Python bytecode (.pyc) pycache डायरेक्टरी में कम्पाइल होती है। इंडेंटेशन-आधारित ब्लॉक स्ट्रक्चर, डायनामिक टाइपिंग और garbage collection Python की विशेषताएँ हैं।

इतिहास

Guido van Rossum ने 1991 में Python रिलीज़ किया। Python 2.0 (2000) में list comprehensions और garbage collection जोड़े गए। Python 3.0 (2008) ने backward compatibility तोड़कर भाषा को आधुनिक बनाया। आज Python दुनिया की सबसे लोकप्रिय प्रोग्रामिंग भाषाओं में से एक है।

.PY से रूपांतरित करें

.PY में रूपांतरित करें

संबंधित फ़ॉर्मेट