覺得代碼在這個網(wǎng)站里看起來好清晰歐,似乎在這里整理代碼筆記比在evernote里面好
例如re.compile 的功用:
The sequence
prog=re.compile(pattern)result=prog.match(string)
is equivalent to
result=re.match(pattern,string)
but using?re.compile()?and saving the resulting regular expression object for reuse is more efficient when the expression will be used several times in a single program.