缩进
if True:
print "True"
else:
print "False"#!/usr/bin/python
# -*- coding: UTF-8 -*-
# 文件名:test.py
if True:
print "Answer"
print "True"
else:
print "Answer"
# 没有严格缩进,在执行时报错
print "False"$ python test.py
File "test.py", line 5
if True:
^
IndentationError: unexpected indent最后更新于