有没有一个python类等价于ruby的StringScanner class?我可以一起破解一些东西,但如果已经存在的话,我不想重新发明轮子。
最佳答案
似乎是re.split( pattern, string )
上的变体。
http://docs.python.org/library/re.html
http://docs.python.org/library/re.html#re.split
有没有一个python类等价于ruby的StringScanner class?我可以一起破解一些东西,但如果已经存在的话,我不想重新发明轮子。
最佳答案
似乎是re.split( pattern, string )
上的变体。
http://docs.python.org/library/re.html
http://docs.python.org/library/re.html#re.split