网络编程
位置:首页>> 网络编程>> Python编程>> Python环境搭建过程从安装到Hello World

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

作者:唔仄lo咚锵  发布时间:2023-03-03 07:41:36 

标签:python,环境,hello,world

开发环境

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

来源:https://blog.csdn.net/qq_45034708/article/details/113597816

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com