📜  IndentationError: 意外缩进 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:23.990000             🧑  作者: Mango

代码示例1
# Python uses spacing at the start of the line to determine when code blocks start and end. 
# Errors you can get are:

def a():
...print "foo"
...     print "bar"
IndentationError: unexpected indent

>>>   print "hello"
IndentationError: unexpected indent