Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] partition() (was: Remove str.find in 3.0?)

Eric Nieuwlanderic.nieuwland at xs4all.nl
Tue Aug 30 17:35:24 CEST 2005


Pierre Barbier de Reuille wrote:> Or you want to have some "partition" method which accept regular> expressions:>> head, sep, tail = some_str.partition(re.compile(sep+'.'*offset))Neat!+1 on regexps as an argument to partition().--eric


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp