我的第一个Python程序:
print 'hello world'
raw_input ("print any key to continue...")
在python3.4下应写为
print ("hello world! This is my first python!")
input("Press enter key to close this window...")
此时的print函数已经成为python内置函数。
本文介绍了如何在Python 3.4环境中编写并运行第一个程序。详细解释了print函数的使用方法及变化,并展示了如何使用input函数暂停程序等待用户输入。
我的第一个Python程序:
print 'hello world'
raw_input ("print any key to continue...")
print ("hello world! This is my first python!")
input("Press enter key to close this window...")
173

被折叠的 条评论
为什么被折叠?