开发环境

安装最新版Python
下载地址:https://www.python.org/downloads/

Python环境搭建过程从安装到Hello World
Python环境搭建过程从安装到Hello World
Python环境搭建过程从安装到Hello World
Python环境搭建过程从安装到Hello World
Python环境搭建过程从安装到Hello World
Python环境搭建过程从安装到Hello World

运行Python


1.交互方式运行

用自带的IDLE

Python环境搭建过程从安装到Hello World

打开cmd输入python

Python环境搭建过程从安装到Hello World

2.程序方式运行
新建hello.py

print("Hello World") #打印语句
input() #输入(起暂停作用)

直接双击该文件

Python环境搭建过程从安装到Hello World

用cmd运行

Python环境搭建过程从安装到Hello World

UNIX/Linux下,也是python+文件名记得用chomod命令设置执行权限

%python hello.py
%./hello.py

IDE

推荐PyCharm
下载地址:https://www.jetbrains.com/zh-cn/pycharm/download/
有学生邮箱可以用专业版,或者选择免费社区版。

Python环境搭建过程从安装到Hello World

Python环境搭建过程从安装到Hello World
Python环境搭建过程从安装到Hello World

插播反爬信息 )博主CSDN地址:https://wzlodq.blog.csdn.net/

Python环境搭建过程从安装到Hello World
Python环境搭建过程从安装到Hello World
Python环境搭建过程从安装到Hello World

第一个项目 

流水的语言,铁打的Hello World

Python环境搭建过程从安装到Hello World
Python环境搭建过程从安装到Hello World
Python环境搭建过程从安装到Hello World

Python环境搭建过程从安装到Hello World
Python环境搭建过程从安装到Hello World
Python环境搭建过程从安装到Hello World

Python环境搭建过程从安装到Hello World

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。