2004年02月25日 星期三 14:27
谢谢,我自己写了句:
>>> tag = re.compile("(<%=.*%>)(.*>)",re.IGNORECASE|re.DOTALL|r
e.VERBOSE)
>>> tag.match("input").groups(1)
怎么显示
Traceback (most recent call last):
File "", line 1, in ?
AttributeError: 'NoneType' object has no attribute 'groups'
我错在哪里了?
> Hello slackgg,
>
> copy from Python book!
>
> """
> re.IGNORECASE | # allow pepper, Pepper, PEPPER, etc.
> re.DOTALL | # allow to match newlines as well
> re.VERBOSE) # this allows the comments and the newlines above
> """
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
网易VIP收费邮箱两周年超值优惠! 满1赠6!! http://vip.163.com
中国最大的免费邮箱在等你 25兆空间4兆附件! http://mail.163.com
点击网易泡泡惊喜无限 全免费手机短信任你发! http://popo.163.com
Zeuux © 2025
京ICP备05028076号