On Thu, 30 Apr 2020, 09:22 Pietro Brunetti, <[email protected]> wrote:
> testo = "Era una notte buia e tempestosa, molto tempestosa" > > parole = testo.split() > Meglio così: import re parole = list(re.findall(r"\b\w+\b", testo)) > <https://lists.python.it/mailman/listinfo/python> Non penso ci siano underscore o cifre nel testo. Ciao. Marco.
_______________________________________________ Python mailing list [email protected] https://lists.python.it/mailman/listinfo/python
