|
Size: 1280
Comment:
|
Size: 1513
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 53: | Line 53: |
| * [[Python/MoinMoin|MoinMoin]] * [[Python/Flask|Flask]] * [[Python/Gunicorn|Gunicorn]] |
|
| Line 54: | Line 57: |
| * [[Python/MoinMoin|MoinMoin]] | * [[Python/Werkzeug|Werkzeug]] |
| Line 65: | Line 68: |
| == Libraries == * [[Python/Codecs|Codecs]] |
|
| Line 67: | Line 76: |
| * [[Python/HtmlParser|html.parser (HTML)]] * [[Python/BeautifulSoup|Beautiful Soup (HTML)]] * [[Python/Pdfminer|pdfminer (PDF)]] * [[Python/XmlSax|xml.sax (XML)]] * [[Python/XmlDomMinidom|xml.dom.minidom (XML)]] * [[Python/LxmlEtree|lxml.etree (XML)]] |
=== 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]] |
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
Libraries
Parsers
Configuration Files
HTML
XML
