[Tutor] 答复: Any book to study Python
Yan, Xianming
Xianming.Yan at intercallapac.com
Mon Mar 19 10:40:59 CET 2012
I guess I solved the problem.
I should type in some space before the print "dd" statement.
Sorry for disturbing you if the e-mail.
Thanks
Xianming
-----邮件原件-----
发件人: Yan, Xianming
发送时间: 2012年3月19日 17:40
收件人: 'tutor at python.org'
主题: Any book to study Python
I'm following http://docs.python.org/tutorial/interpreter.html to type in the first script into python.
According to the link, I typed below:
>>> the_world_is_flat = 1
>>> if the_world_is_flat:
... print "Be careful not to fall off!"
Then I get below output:
File "<stdin>", line1
Print "dd"
^
IndentationError:expected an indented block
This is incorrect. According to the book, I should get:
Be careful not to fall off!
Anyone can tell me where the problem is or any suggestion about it?
Thanks
Xianming
More information about the Tutor
mailing list