Python 常见问题

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

posted @ 2018-07-31 17:13  ice_Ding  阅读(128)  评论(0编辑  收藏  举报