C:\Users\Administrator>python
Python 3.6.3|Anaconda custom (64-bit)|(default, Oct 152017,03:27:45)190064 bit (AMD64)] on win32
Type "help","copyright","credits"or"license"for more information.>>>
在python提示符中输入以下语句,然后按回车键查看运行效果:
print('hello Python!')
以上命令执行结果为:
hello Python!
当键入一个多行结构时,续行是必须的,我们可以看如下if语句:
>>> the_world_is_flat =True>>>if the_world_is_flat:...print('Be careful not to fall off!')...
Be careful not to fall off!
>>>