您的位置:首页 > 编程语言 > Python开发

python,hello world

2017-09-11 23:12 183 查看
能有家人的陪伴是幸福的。步入话题

1  下载

 https://www.python.org/downloads/

2 安装

  安装python的时候把python的写入环境变量。

3 最简单的helloworld

在开始菜单运行python 或者找到C:\Python36-32\python.exe

 

Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)]

 on win32

Type "help", "copyright", "credits" or "license" for more information.

>>> print("hello world");

hello world

>>>

我们在终端输入" print("hello world");" 回车,终端输出了 "hello world" !

4  参考
https://docs.python.org/3.6/tutorial/index.html https://docs.python.org/3.6/index.html
5 另一个hello word!

 安装Geany_1.31.0.0.exe,使用Geany新建一个helloword.py的文件

文件的内容是print("hello world");,保存--build--execute.

输出如下:

hello world

------------------

(program exited with code: 0)

请按任意键继续. . .
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: