Just to add to this a little bit, instead of adding a bunch of or "|" symbols you can do the following: re.split('[;,.\-\%]',str), where inside ... ... <看更多>
In addition, it is possible to define multi-line strings using a triple-quote ... We introduced Python's string type and a few of these methods earlier; ... ... <看更多>