hydbk123

一.安装Python

1.Python官网下载Python3,并安装(注意勾选Add Python 3.x to PATH)

2.win终端输入python,查看是否安装成功,若是成功,则会出现类似下面的

Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

3.在提示符(>>>)后输入print("Hello World !"),得到输出Hello World !

二.安装Geany

1.官网下载并安装

2.输入有效代码,点击两个齿轮的图标可以运行程序

三.终端里运行Python

1.编写一个有效的hello.py文件

1.在终端中使用cd命令和dir命令找到hello.py文件所在的文件夹

2.输入 python hello.py,运行程序

 

分类:

技术点:

相关文章:

  • 2021-08-11
  • 2021-08-02
  • 2021-10-17
  • 2021-07-16
  • 2021-09-12
  • 2021-11-30
  • 2022-01-12
  • 2021-12-24
猜你喜欢
  • 2021-08-31
  • 2021-12-03
  • 2021-12-03
  • 2021-09-27
  • 2021-09-22
  • 2021-11-11
  • 2021-06-03
相关资源
相似解决方案