python

python的第一个程序

2018-10-11  本文已影响0人  hiekay

如果是用windows,请打开CMD,并执行python。
如果是UNIX类的,就运行shell,并执行python。

都会出现如下内容:

Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "hello world"
hello world
>>> 

在>>>后面输入下面内容,并按回车。

>>> print "Hello, World"
Hello, World

推荐集成开发环境(IDE)

pycharm

上一篇下一篇

猜你喜欢

热点阅读