1.上下文缩进不一致问题,有的是空格,有的是tab, 务必仔细再检查
[root@andytest logs]# python access_log.py
File "access_log.py", line 8
attr=["SH IP","BJ IP","TJ IP","SZ IP","External IP"]
^
TabError: inconsistent use of tabs and spaces in indentation