2006年04月30日 星期日 23:34
|#!/usr/bin/python
3 |# This Python file uses the following encoding: utf-8
4 |import re
5 |pattern='^[^1]'
6 |f=open('/var/log/apache2/access.log','r')
7 |readlines=f.readlines()
8 |for str in readlines:
9 | li =re.compile(pattern)
10 | li.search(pattern).groups()
11 |f.close()
|
File "./http.py", line 9
li.search(pattern).groups()
^
IndentationError: unindent does not match any outer indentation level
http://www.woodpecker.org.cn/obp/diveintopython-zh-5.4/zh-cn/dist/html/toc/index.html
groups()该怎么用
Zeuux © 2025
京ICP备05028076号