【学习笔记】Python的 Hello world
2017-12-07 19:51
501 查看
Python 交互模式运行Hello world
cmd窗口输入 python,即可进入Python交互模式python交互模式下输入:print(“hello world”)
显示结果:hello world
图示
具体运行
D:\PythonProject>python Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> >>> >>> >>> >>> >>> print("hello world") hello world >>> >>>
cmd窗口运行.py文件
D盘新建PythonProject文件夹新建一个文件,例如 helloworld.py
helloworld.py 填写 print(“hello world”)
D盘下运行 python helloworld.py
运行结果:hello world
helloworld.py
print("hello world")
D:\PythonProject>python helloworld.py hello world
相关文章推荐
- Python学习笔记1——搭建环境与“Hello World”
- Python学习笔记01 从零开始Hello world
- Python学习笔记--01、Hello World!
- 【Python】学习笔记一:Hello world
- Python学习笔记1-搭建Python环境 和 Python Hello World!
- python基础教程学习笔记 — ‘Hello World’
- Python学习笔记1-搭建Python环境 和 Python Hello World!
- Python-Django框架学习笔记——第一课:Hello World
- Python Tkinter 学习笔记(一) Hello world
- Python学习笔记1-搭建Python环境 和 Python Hello World!
- python-django学习笔记-第一个hello world
- Python学习笔记:01 环境搭建和“Hello World!”
- Python学习笔记1-搭建Python环境 和 Python Hello World!
- python基础教程_学习笔记25:程序打包
- Python学习笔记--正则表达式篇
- Python学习笔记三:逻辑操作符
- Python学习笔记_3_列表(1)
- Python学习笔记[1]
- python学习笔记1.1
- python 学习笔记 三 字典