Tutorial su Python

Suggerimento

This tutorial is designed for programmers that are new to the Python language, not beginners who are new to programming.

Python è un linguaggio di programmazione potente e facile da imparare. Dispone di strutture di dati efficienti e di alto livello e di un approccio semplice ma efficace alla programmazione orientata agli oggetti. La sintassi elegante e la tipizzazione dinamica di Python, insieme alla sua natura interpretata, ne fanno un linguaggio ideale per lo scripting e il rapido sviluppo di applicazioni in molte aree per la maggior parte delle piattaforme.

The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python website, https://www.python.org/, and may be freely distributed. The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation.

L’interprete Python è facilmente ampliabile con nuove funzioni e tipi di dati implementati in C o C++ (o altri linguaggi richiamabili da C). Python è adatto anche come linguaggio di estensione per applicazioni personalizzabili.

This tutorial introduces the reader informally to the basic concepts and features of the Python language and system. Be aware that it expects you to have a basic understanding of programming in general. It helps to have a Python interpreter handy for hands-on experience, but all examples are self-contained, so the tutorial can be read off-line as well.

For a description of standard objects and modules, see Python built-ins reference and The Python standard library. The Python Language Reference gives a more formal definition of the language. To write extensions in C or C++, read Extending and Embedding the Python Interpreter and Python/C API reference manual. There are also several books covering Python in depth.

Questo tutorial non vuole essere completo e coprire ogni singola caratteristica, come pure ogni caratteristica usata comunemente. Invece, introduce molte delle caratteristiche più importanti di Python, e vi darà una buona idea sullo stile del linguaggio. Dopo averlo letto, sarete in grado di leggere e scrivere moduli e programmi Python, e sarete pronti per saperne di più sui vari moduli della libreria Python, i quali sono descritti in The Python standard library.

Anche il Glossary vale la pena di essere sfogliato.