l'analisi del lessico, per individuare le parole, in gergo "tokens"
Esiste la "stringa su piu' linee", ognuna che termina col simbolo "\".
Non esiste multiline comment.
can be split over more than one physical line without using backslashes.
month_names = ['Januari', 'Februari', 'Maart', # These are the 'April', 'Mei', 'Juni', # Dutch names 'Juli', 'Augustus', 'September', # for the months 'Oktober', 'November', 'December'] # of the year
Implicitly continued lines can carry comments.
multi-line strings are often used as a replacement for multi-line comment
: a colon followed by
indentation
for i in range(10): print(i) # indentation indicates code block
nome privato 1 solo underscore, es: _nome
python/tutorial/modules#importing-from-a-package
\a | ASCII Bell (BEL) print("\a") suona effettivamente il campanello |
---|---|
\b | ASCII Backspace (BS) |
\f | ASCII Formfeed (FF) |
\n | ASCII Linefeed (LF) |
\r | ASCII Carriage Return (CR) |
\t | ASCII Horizontal Tab (TAB) |
\xhh | Character with hex value hh |
:
)
on the previous line.