1. 在Python中,主要使用_______模块来实现正则表达式的操作。
2. 以下的正则表达式哪一个可以并仅可以正确匹配python,jython和cython?
A. [P,J,C]ython B.[pjc]ython
B. [a-z]ython D.[^pjc]ython
3. 请写出一个字符串变量为type,要求它能正确匹配百度网址(http://www.baidu.com或 www.baidu.com 或 baidu.com)的正则表达式
4. Python的re模块中________方法能在整个字符串中寻找模式,__________方法能从字符串的开始出匹配模式.
5. 将字符串”tina gray, joy;tom; mari”中所有的人名解析出来存放到一个列表中
6. 请统计出下面这段话中包括多少词,并分别列出是什么。将所有的单独出现的i替换为I
Super Mom
Mom, you're a wonderful mother, So gentle,yet so strong. The many ways you show you care Always make me feel Ibelong. You're patient when I'm foolish;You give guidance when i ask; It seems you can do most anything; You're themaster of every task. You're adependable source of comfort; You're my cushion when I fall. You help in timesof trouble; You support me whenever i call. i love you more than you know; You have my total respect. If I had mychoice of mothers, You'd be the one I'd select!