doc:appunti:prog:python_unicode
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| doc:appunti:prog:python_unicode [2013/10/12 08:05] – [Input: lettura da database] niccolo | doc:appunti:prog:python_unicode [2015/07/17 09:50] (current) – [Nomi di file e directory] niccolo | ||
|---|---|---|---|
| Line 107: | Line 107: | ||
| </ | </ | ||
| + | ===== Lettura file di testo ===== | ||
| + | |||
| + | Invece della semplice **'' | ||
| + | |||
| + | <code python> | ||
| + | import codecs | ||
| + | for line in codecs.open(" | ||
| + | print line.strip() | ||
| + | </ | ||
doc/appunti/prog/python_unicode.1381557901.txt.gz · Last modified: by niccolo
