Size: 275
Comment:
|
Size: 1866
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
The '''Python programming language''' is an interpreted, duck-typed language. |
|
Line 9: | Line 11: |
== Programming paradigms == | == Example == |
Line 11: | Line 13: |
* [[Python/FunctionComposition|Function composition]] | A hello world program looks like: |
Line 13: | Line 15: |
{{{ def main(): print("Hello, world") |
|
Line 14: | Line 19: |
if __name__ == "__main__": main() }}} |
|
Line 15: | Line 23: |
== Librares == | If using Python 2, the print command is instead a statement. |
Line 17: | Line 25: |
{{{ print "Hello, world" }}} To run the program, try: {{{ python hello.py # or chmod 755 hello.py ./hello.py }}} ---- |
|
Line 22: | Line 44: |
* [[Python/Installation|Installation]] * [[Python/Pip|pip]] * [[Python/PyProject|pyproject.toml]] |
|
Line 24: | Line 49: |
* [[Python/TypeAnnotation|Type Annotation]] == Applications and Servers == * [[Python/MoinMoin|MoinMoin]] * [[Python/Flask|Flask]] * [[Python/Gunicorn|Gunicorn]] * [[Python/UWSGI|uWSGI]] * [[Python/Werkzeug|Werkzeug]] == Language == * [[Python/Builtins|Built-ins]] * [[Python/ContextManagers|Context managers]] * [[Python/DunderMethods|Dunder Methods]] * [[Python/FunctionComposition|Function composition]] == Standard Library Modules == * [[Python/Codecs|codecs]] * [[Python/ContextLib|contextlib]] * [[Python/Collections|collections]] * [[Python/CollectionsAbc|collections.abc]] * [[Python/Typing|typing]] == Parser Modules and Classes == === Configuration Files === * [[Python/ConfigParser|ConfigParser]] === HTML === * [[Python/HtmlParser|html.parser]] * [[Python/BeautifulSoup|Beautiful Soup]] === PDF === * [[Python/Pdfminer|pdfminer]] === XML === * [[Python/XmlSax|xml.sax]] * [[Python/XmlDomMinidom|xml.dom.minidom]] * [[Python/LxmlEtree|lxml.etree]] == Creating Libraries == * [[Python/DunderFiles|Dunder Files]] * [[Python/SetupFiles|Setup Files]] |
Python
The Python programming language is an interpreted, duck-typed language.
Contents
Example
A hello world program looks like:
def main(): print("Hello, world") if __name__ == "__main__": main()
If using Python 2, the print command is instead a statement.
print "Hello, world"
To run the program, try:
python hello.py # or chmod 755 hello.py ./hello.py
Tool chain
Applications and Servers
Language
Standard Library Modules
Parser Modules and Classes
Configuration Files
HTML
XML