feat: add Python section with overview, example code, and logo; update bibliography with Python reference
This commit is contained in:
11
Biblio.bib
11
Biblio.bib
@@ -425,3 +425,14 @@
|
||||
year = {},
|
||||
note = {[Accessed 18-03-2025]}
|
||||
}
|
||||
|
||||
@book{10.5555/1593511,
|
||||
author = {Van Rossum, Guido and Drake, Fred L.},
|
||||
title = {Python 3 Reference Manual},
|
||||
year = {2009},
|
||||
isbn = {1441412697},
|
||||
publisher = {CreateSpace},
|
||||
address = {Scotts Valley, CA},
|
||||
abstract = {PYTHON 3 Reference Manual (Python Documentation MANUAL Part 2).Python is an easy to learn object-oriented programming language, which combines power with clear syntax. It has modules, classes, exceptions, very high level data types, and dynamic typing. Python is free software. It can be used with GNU (GNU/Linux), Unix, Microsoft Windows and many other systems.This is a printed softcover copy of the official Python documentation from the latest Python 3.0 distribution. For each copy sold $1 will be donated to the Python Software Foundation by the publisher.This book is part of a brand new six-part series of Python documentation books. Searching for "Python Documentation Manual" will show all six available books.ABOUT THE AUTHOR: Guido van Rossum, is the inventor of Python. Fred L. Drake, Jr. is the official editor of the Python documentation.}
|
||||
}
|
||||
|
||||
|
50
Tesi.tex
50
Tesi.tex
@@ -38,6 +38,7 @@
|
||||
\usepackage{lipsum} % Per inserire testo a caso in attesa di realizzare i capitoli
|
||||
|
||||
\usepackage{listings} % Per inserire codice formattato
|
||||
|
||||
%\lstset{
|
||||
%lstset va usato dopo l'inizio del document e ogni volta che si vuole cambiare/impostare il linguaggio da formattare
|
||||
% language=bash
|
||||
@@ -724,6 +725,55 @@ Infine, il MongoDB Query Language Aggregation Framework, è un set di processi c
|
||||
|
||||
\subsection{Python}
|
||||
|
||||
Python è un linguaggio di programmazione ad alto livello, interpretato, orientato agli oggetti e con semantica dinamica. È progettato per essere facile da leggere e scrivere, con una sintassi pulita e chiara che favorisce la leggibilità del codice. Python è noto per la sua facilità d'uso e la sua versatilità, che lo rendono adatto a una vasta gamma di applicazioni, dallo sviluppo web alla data science, all'automazione dei processi.
|
||||
|
||||
\begin{figure}[H]
|
||||
\centering
|
||||
\includegraphics[width=300pt]{images/python-logo-master-v3-TM.png}
|
||||
\caption{Python Logo.}
|
||||
\end{figure}
|
||||
|
||||
Essendo un linguaggio interpretato, Python non richiede una fase di compilazione, ma viene eseguito direttamente da un `interpreter'. Questo lo rende particolarmente adatto per lo sviluppo rapido di applicazioni e per l'iterazione veloce durante lo sviluppo. Python è anche noto per la sua vasta libreria standard, che fornisce un'ampia gamma di moduli e pacchetti pronti all'uso per svolgere una varietà di compiti comuni e per auesto viene utilizzato spesso per fare `data science'.\cite{10.5555/1593511}
|
||||
|
||||
L'indentazione è parte fontamentale in quanto, a differenza di altri linguaggi di programmazione dove l'indentazione è solo una convenzione, in Python è obbligatoria e definisce la struttura del codice. Questo rende il codice più leggibile e coerente, ma richiede anche attenzione per mantenere la corretta struttura del codice.
|
||||
|
||||
\break
|
||||
|
||||
\lstset{language=Python}
|
||||
\begin{lstlisting}[caption={Esempio di codice Python}, captionpos=b, basicstyle=\footnotesize]
|
||||
import numpy as np
|
||||
|
||||
def incmatrix(genl1,genl2):
|
||||
m = len(genl1)
|
||||
n = len(genl2)
|
||||
M = None #to become the incidence matrix
|
||||
VT = np.zeros((n*m,1), int) #dummy variable
|
||||
|
||||
#compute the bitwise xor matrix
|
||||
M1 = bitxormatrix(genl1)
|
||||
M2 = np.triu(bitxormatrix(genl2),1)
|
||||
|
||||
for i in range(m-1):
|
||||
for j in range(i+1, m):
|
||||
[r,c] = np.where(M2 == M1[i,j])
|
||||
for k in range(len(r)):
|
||||
VT[(i)*n + r[k]] = 1;
|
||||
VT[(i)*n + c[k]] = 1;
|
||||
VT[(j)*n + r[k]] = 1;
|
||||
VT[(j)*n + c[k]] = 1;
|
||||
|
||||
if M is None:
|
||||
M = np.copy(VT)
|
||||
else:
|
||||
M = np.concatenate((M, VT), 1)
|
||||
|
||||
VT = np.zeros((n*m,1), int)
|
||||
|
||||
return M
|
||||
\end{lstlisting}
|
||||
|
||||
\subsection{Selenium}
|
||||
|
||||
|
||||
|
||||
\section{Architettura del sistema di test}
|
||||
|
BIN
images/python-logo-master-v3-TM.png
Normal file
BIN
images/python-logo-master-v3-TM.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 82 KiB |
Reference in New Issue
Block a user