在python命令行模式下,在IDLE中输入多行,例如if else
使用tab的方式,控制缩进
在最后,连续两个回车,表示结束
>>> if state: ... print "ok" ... else: ... print "wrong" ... wrong >>>