Python
|
????????????
| multi-paradigm
:
object-oriented
,
imperative
,
functional
,
procedural
,
reflective
|
---|
?????? ???????????
| 20 ??????? 1991
; 33 years ago
(
1991-??-20
)
[?]
|
---|
?????? ???????
| Guido van Rossum
|
---|
??????
| Python Software Foundation
|
---|
?????? ?????
| 3.6.1 / 21 ??????? 2017
; 7 years ago
(
2017-??-21
)
[?]
2.7.13 / 17 ???????? 2016
; 7 years ago
(
2016-??-17
)
[?]
|
---|
?????? ??????
| duck
,
dynamic
,
strong
|
---|
?????? ???????
| CPython
,
IronPython
,
Jython
,
MicroPython
,
PyPy
|
---|
??????
| Cython
,
RPython
,
Stackless Python
|
---|
????? ???????? ????????
| ABC
,
[?]
ALGOL 68
,
[?]
C
,
[?]
C++
,
[?]
Dylan
,
[?]
Haskell
,
[?]
Icon
,
[??]
Java
,
[??]
Lisp
,
[??]
Modula‑3
,
[?]
Perl
|
---|
??? ?????? ???????? ????????
| Boo
,
Cobra
,
CoffeeScript
,
[??]
D
,
F#
,
Falcon
,
Genie
,
[??]
Go
,
Groovy
,
JavaScript
,
[??]
[??]
Julia
,
[??]
Nim
,
Ruby
,
[??]
Swift
[??]
|
---|
???????? ??????
| Cross-platform
|
---|
??????
| Python Software Foundation License
|
---|
???????
| www
.python
.org
|
---|
|
??????
?? "???? ?????? ??????????? ????" ??? ?
[??]
[??]
[??]
??
??? ??????????? ???? ??????? ????? ?????? ????? ????????? ???? ????? ??? ?????????? ?????????? ?
[??]
[??]
???? ?????? ???? ?? ???????????, ??????????? ?????? ??? ???????? ???? ? ???????????? ?????? ????
???? ??????????? ?????? ????-??????? ????? ?????? ( {} )?? ??????????? ????, ????????? ????? ?????? (white space)? ??????? ?????? ????? ????? ???? ????? (Guido van Rossum) ???? ??????? ?????? ???????? ????? ??? ?? ??????????? ????, ?????? ????? ????? ???????????? ??????? ????? ??????? ??????? (compile) ?????? ???????? ????? ?????? ???????? ????? ???????????? ????????? ???? ??????? ????????? ??? ?????????????? ???? ?????? ???????????
???? ?????? (Linux) ?????????? ??????? ?? ?????? ??????????? (interpreter) ????? ??? ???????
????? ??? ????????? ???????? ???? ??????? ??????
???? ????? ????????? ????? ???? ????? (Guido van Rossum) alt.sources?? ?????? ?????? ????????
[??]
??? ABC ??????????? ????? ????????? ???????? ????? ???? ?????
Monty Python's Flying Circus
? ????? ????????? ???? ??? ?????? ????????
[??]
?????? ?????? ???????? ?????????? ????????? ??????? ?
[??]
???? ?????????? ??? ?????? ?.?? ?????? ?????? ??????? ?
???? ????? ?????? ?? ??????? ?????? ?.? ??? ???? ????? ????? ??????? ????? ?????? ?????? ????? ???? ???????? ????? ????? ???? ?????? ????? ?????????? ?
[??]
?????? ?????? ?.?? ???? ?????? ????? ?????????
[??]
- ???:
?????? ?? ??? ??????????? ????? ????? ???? ? ?????????? ??????? ?????? ?????? ?? ?????
- ??? ??????:
?????? ?????? ???? ??? ????????? ????? ???? ??????????? ????? ????? ??????????? ???? ???? ??????? ??????????
- ????????? ??? ??????????
: ?????? ?? ???? ?????? ?????????
[??]
- ???? ??????
:
- ?????????
: ???
??????
, ??????,
????
??? ???? ????? ?????????? ??????? ???? ??????? ???? ???? ????? ?????????? ???????? ???? ???? ??? ???????
- ??????????? ??????????? ??????????? ????
:
??
(C) ?? C++ ??? ????? ????? ???????????? ??????? ????? ??????? ??????? (compile) ?????? ???????? ?????
- ??????? ??????????
:
- ?????????????
: ?????? ?????? ????? ????? ???? ???????? ??????? ????, ??? ?????
??
(C) ?? C++?? ????????????
- ?????? ?????????:
?????? ???? ????????? ???? ?????? ?????? ????? ?????? ???????? ??????????
- ??????????:
??????? ????????
[
????????
]
?????? ?.??? ???? ??????? ???????? ?????
and
del
from
not
while
as
elif
global
or
with
assert
else
if
pass
yield
break
except
import
print
class
exec
in
raise
continue
finally
is
return
def
for
lambda
try
?????? ??????
[
????????
]
'''
Hello world
'''
print
"Hello world"
???????? ??????
[
????????
]
# Python 3: Fibonacci series up to n
def
fib
(
n
):
a
,
b
=
0
,
1
while
a
<
n
:
print
(
a
,
end
=
' '
)
a
,
b
=
b
,
a
+
b
print
()
fib
(
1000
)
????? ???????
[
????????
]
????? ??????
[
????????
]
- ↑
"The History of Python: A Brief Timeline of Python"
.
Blogger
. 2009-01-20
. Retrieved
2016-03-20
.
- ↑
Deily, Ned (2017-03-21).
"Python 3.6.1 is now available"
.
Python Insider
. The Python Core Developers
. Retrieved
2017-03-22
.
- ↑
Peterson, Benjamin (2016-12-17).
"Python 2.7.13 released"
.
Python Insider
. The Python Core Developers
. Retrieved
2016-12-17
.
- ↑
"Why was Python created in the first place?"
.
General Python FAQ
. Python Software Foundation
. Retrieved
22 March
2007
.
- ↑
Kuchling, Andrew M. (22 December 2006).
"Interview with Guido van Rossum (July 1998)"
.
amk.ca
. Archived from
the original
on 6 February 2012
. Retrieved
12 March
2012
.
- ↑
van Rossum, Guido (1993).
"An Introduction to Python for UNIX/C Programmers"
.
Proceedings of the NLUUG najaarsconferentie (Dutch UNIX users group)
.
even though the design of C is far from ideal, its influence on Python is considerable.
- ↑
?.?
?.?
"Classes"
.
The Python Tutorial
. Python Software Foundation
. Retrieved
20 February
2012
.
It is a mixture of the class mechanisms found in C++ and Modula-3
- ↑
Simionato, Michele.
"The Python 2.3 Method Resolution Order"
. Python Software Foundation.
The C3 method itself has nothing to do with Python, since it was invented by people working on Dylan and it is described in a paper intended for lispers
- ↑
Kuchling, A. M.
"Functional Programming HOWTO"
.
Python v2.7.2 documentation
. Python Software Foundation
. Retrieved
9 February
2012
.
- ↑
Schemenauer, Neil; Peters, Tim; Hetland, Magnus Lie (18 May 2001).
"PEP 255 ? Simple Generators"
.
Python Enhancement Proposals
. Python Software Foundation
. Retrieved
9 February
2012
.
- ↑
Smith, Kevin D.; Jewett, Jim J.; Montanaro, Skip; Baxter, Anthony (2 September 2004).
"PEP 318 ? Decorators for Functions and Methods"
.
Python Enhancement Proposals
. Python Software Foundation
. Retrieved
24 February
2012
.
- ↑
"More Control Flow Tools"
.
Python 3 documentation
. Python Software Foundation
. Retrieved
5 August
2012
.
- ↑
"CoffeeScript borrows chained comparisons from Python"
.
- ↑
"Genie Language - A brief guide"
. Retrieved
2015-12-28
.
- ↑
"Perl and Python influences in JavaScript"
.
www.2ality.com
. 24 February 2013
. Retrieved
15 May
2015
.
- ↑
Rauschmayer, Axel.
"Chapter 3: The Nature of JavaScript; Influences"
.
O'Reilly, Speaking JavaScript
. Archived from
the original
on 26 December 2018
. Retrieved
15 May
2015
.
- ↑
???? ???: ???
<ref>
?????;
Julia
????? ???? ???? ????? ???? ???? ????? ?
- ↑
Bini, Ola (2007).
Practical JRuby on Rails Web 2.0 Projects: bringing Ruby on Rails to the Java platform
. Berkeley: APress. p. 3.
ISBN
978-1-59059-881-8
.
- ↑
Lattner, Chris (3 June 2014).
"Chris Lattner's Homepage"
. Chris Lattner
. Retrieved
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.
- ↑
TIOBE Software Index (2012).
"TIOBE Programming Community Index Python"
. Retrieved
15 October
2012
.
- ↑
"Programming Language Trends - O'Reilly Radar"
. Radar.oreilly.com. 2 August 2006
. Retrieved
17 July
2013
.
- ↑
"The RedMonk Programming Language Rankings: January 2013 ? tecosystems"
. Redmonk.com. 28 February 2013
. Retrieved
17 July
2013
.
- ↑
Mark Summerfield.
Rapid GUI Programming with Python and Qt
.
Python is a very expressive language, which means that we can usually write far fewer lines of Python code than would be required for an equivalent application written in, say, C++ or Java
- ↑
"Code Complete, p. 100"
.
- ↑
"Python Tutorial: History and Philosophy of Python"
.
www.python-course.eu
. Retrieved
2019-02-17
.
- ↑
"Foreword for "Programming Python" (1st ed.)"
.
Python.org
(in ??????)
. Retrieved
2019-02-17
.
- ↑
??.?
??.?
"History and License ? Python 3.7.2 documentation"
.
docs.python.org
. Retrieved
2019-02-17
.
- ↑
"Update Python 2.7 EOL date by hugovk · Pull Request #344 · python/devguide"
.
GitHub
(in ??????)
. Retrieved
2019-02-18
.
- ↑
Ambv (2019-02-04).
"Python Insider: Python 3.8.0a1 is now available for testing"
.
Python Insider
. Retrieved
2019-02-17
.