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

(编辑:jimmy 日期: 2024/9/21 浏览:2)

开发环境

安装最新版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

一句话新闻

微软与英特尔等合作伙伴联合定义“AI PC”:键盘需配有Copilot物理按键
几个月来,英特尔、微软、AMD和其它厂商都在共同推动“AI PC”的想法,朝着更多的AI功能迈进。在近日,英特尔在台北举行的开发者活动中,也宣布了关于AI PC加速计划、新的PC开发者计划和独立硬件供应商计划。
在此次发布会上,英特尔还发布了全新的全新的酷睿Ultra Meteor Lake NUC开发套件,以及联合微软等合作伙伴联合定义“AI PC”的定义标准。