python安装idle_1.安装Python IDLE

1.去网站download菜单下载自己操作系统对应的安装包Welcome to Python.org​www.python.orgv2-ff06c339780f23112c1cbbbb284158ff_ipico.jpg

2.小熊AI自己的系统是mac 并且选择了目前最新稳定版是3.6.4

3.点击下一步下一步安装binggo~

4.python 3.6.4shell 里输入hello word

>>> WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable.

Visit IDLE and tkinter with Tcl/Tk on macOS for current information.

print "hello word"

SyntaxError: Missing parentheses in call to 'print'. Did you mean print("hello word")?①

>>> print"hello word"

SyntaxError: invalid syntax②

>>> print("hello world")

hello world

4.简单计算

>>> a=1

>>> b=2

>>> a+b

3

>>> 5+3

8

>>> 4*2333333

9333332

>>> 2333333333*23333333333

54444444435888888889

5.

>>> "cat"+"dog"

'catdog'

>>> "hello"*233

'hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello'

tips 小熊目前学习的书是<父与子编程之旅>,比较简单,大神轻拍.

为了监督自己每天的学习进度所有在知乎专栏开始直播学习.

①句法错误,丢失()

②句法错误,不存在的句法

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在Windows系统中,你可以使用批处理(Batch)命令来自动化安装Python IDLE(集成开发环境)。Python IDLEPython语言的标准文本编辑器和交互式解释器。以下是使用批处理命令进行安装的基本步骤: 1. 首先,你需要下载Python安装包,可以从Python官方网站(https://www.python.org/downloads/)下载适用于Windows的最新稳定版本。 2. 安装Python时,确保勾选"Add Python to PATH"选项,这将允许你在命令提示符或PowerShell中直接运行PythonIDLE。 3. 创建一个名为`install_python.bat`或类似的批处理文件,打开记事本,然后输入以下内容: ```batch @echo off set PYTHON_VERSION=3.X.Y (这里替换为你想要安装Python版本号) set PYTHON_EXE=python%PYTHON_VERSION%.msi (同样替换为对应版本的MSI文件名) set SOURCE_DIR=%temp%\PythonInstaller rem 下载Python安装包 echo Downloading %PYTHON_EXE% powershell -Command "& {'Invoke-WebRequest -Uri 'https://www.python.org/ftp/python/%PYTHON_VERSION%/%PYTHON_EXE%' -OutFile '%SOURCE_DIR%\%PYTHON_EXE%' >NUL 2>&1"} rem 安装Python echo Installing Python... start /wait msiexec.exe /qn /i "%SOURCE_DIR%\%PYTHON_EXE%" ADDLOCAL=IDLE,Tools >NUL rem 删除临时文件 echo Cleaning up... rd /s /q "%SOURCE_DIR%" >NUL 2>&1 echo Python IDLE installation completed. pause ``` 4. 将上述代码保存后,双击运行`install_python.bat`,系统会自动下载并安装指定版本的PythonIDLE。 **相关问题:** 1. 批处理文件是什么? 2. 如何在Windows上手动添加Python到PATH? 3. IDLEPython的哪个部分?
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值