Python

Vikipediya, ochiq ensiklopediya
Jump to navigation Jump to search
Python
Python logo and wordmark.svg
Ilk reliz 1991 (30 yil avval) (1991)[1]
Soʻnggi reliz
5-oktabr, 2020-yil (6 oy avval) (2020-10-05)[2]
Turi dasturlash tili
Maqomi
Fayl kengaytmalari
  • .py
  • .pyi
  • .pyc
  • .pyd
  • .pyo
  • .pyw
  • .pyz
Versiyalari 3.9.0
Turi
Taʼsir etuvchi dasturlar Apache Groovy, Boo, Cobra, CoffeeScript,[3] D, F#, Genie,[4] Go, JavaScript,[5][6] Julia,[7] Nim, Ring,[8] Ruby,[9] Swift[10]
Litsenziya Python Software Foundation License
Veb-sayt python.org
Platformasi

Python (talaffuzi: Piton) — umumiy-maqsadli dasturlash uchun keng tarzda foydalaniladigan yuqori darajali dasturlash tili. Ushbu dasturlash tili Guido van Rossum tomonidan yaratilgan va birinchi marta 1991-yilda foydalanib koʻrilgan.

Python har xil platformalar uchun yozilgan, masalan Windows, Linux, Mac OS X, Palm OS, Mac OS va boshqalar. Python Microsoft.NET platformasi uchun yozilgan realizatsiyasi ham mavjud boʻlib, uning nomi — IronPython.

Sintaksis[tahrir]

Unda Lua tiliga oʻxshab, bir vaqtning o'zida bir nechta o'zgaruvchiga qiymat berish mumkin. Shuningdek, yangi o'zgaruvchi kiritmasdan turib, ikkita o'zgaruvchining qiymatlarini almashtirish mumkin:

 x, y = y, x

Va uni funksiyalaridan ham shunday turda qaytarishingiz mumkin:

def function():
    x = "Jimbo"
    y = "Wales"
    return x, y

Salom, dunyo![tahrir]

# -*- coding: utf-8 -*-
print("Salom, dunyo!")

Ishlatilishi[tahrir]

Web dasturlash[tahrir]

  • Zope — CMS yaratish uchun server va veb dasturlar qilish uchun dastur.
  • Django — web yaratish qilish uchun dastur.
  • Turbogears — web yaratish qilish uchun dastur.
  • CherryPy — web yaratish qilish uchun dastur.
  • Plone — saytni muhofaza qilish uchun dastur.
  • Mailman — „Rassilka“ yaratish uchun dastur
  • MoinMoin — viki — dvijok internet va intranet uchun
  • PlanetPlanet — RSS oqimini sindikatsiyalash

Grafika[tahrir]

  • Skencil — Vektor grafikasi uchun dastur

Pythonni ishlatadigan dasturlar[tahrir]

Pythonni ishlatadigan kompaniyalar[tahrir]

Manbalar[tahrir]

  1. Guttag, John V. (12 August 2016). Introduction to Computation and Programming Using Python: With Application to Understanding Data. MIT Press. ISBN 978-0-262-52962-4. 
  2. Python Release Python 3.9.0. Python.org (2020-10-05). 2020-10-05.
  3. CoffeeScript. coffeescript.org.
  4. The Genie Programming Language Tutorial. 28 February 2020.
  5. Perl and Python influences in JavaScript. www.2ality.com (24 February 2013). 15 May 2015.
  6. Rauschmayer, Axel. Chapter 3: The Nature of JavaScript; Influences. O'Reilly, Speaking JavaScript. 15 May 2015.
  7. Why We Created Julia. Julia website (February 2012). 5 June 2014. “We want something as usable for general programming as Python [...]”
  8. Ring Team (4 December 2017). Ring and other languages. ring-lang.net. ring-lang.
  9. Bini, Ola (2007). Practical JRuby on Rails Web 2.0 Projects: bringing Ruby on Rails to the Java platform. Berkeley: APress, 3. ISBN 978-1-59059-881-8. 
  10. Lattner, Chris (3 June 2014). Chris Lattner's Homepage. Chris Lattner. 3 June 2014. “The Swift language is the product of tireless effort from a team of language experts, documentation gurus, compiler optimization ninjas, and an incredibly important internal dogfooding group who provided feedback to help refine and battle-test ideas. Of course, it also greatly benefited from the experiences hard-won by many other languages in the field, drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list.”

Havolalar[tahrir]