美文网首页python
python的第一个程序

python的第一个程序

作者: hiekay | 来源:发表于2018-10-11 18:19 被阅读0次

如果是用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

相关文章

网友评论

    本文标题:python的第一个程序

    本文链接:https://www.haomeiwen.com/subject/edxiaftx.html