37,720
社区成员
发帖
与我相关
我的任务
分享
In [50]: import re
In [51]: re.search?
Type: function
String form: <function search at 0x7f9ae14d4c80>
File: /usr/lib/python2.7/re.py
Definition: re.search(pattern, string, flags=0)
Docstring:
Scan through string looking for a match to the pattern, returning
a match object, or None if no match was found.
In [52]: re.search??
Type: function
String form: <function search at 0x7f9ae14d4c80>
File: /usr/lib/python2.7/re.py
Definition: re.search(pattern, string, flags=0)
Source:
def search(pattern, string, flags=0):
"""Scan through string looking for a match to the pattern, returning
a match object, or None if no match was found."""
return _compile(pattern, flags).search(string)
In [53]: re? # 显示re模块的文档, 但因为文档很长, 是在一个类似于popup的界面显示的, 没法copy过来