
python
TATOQOQ
好记性不如烂笔头
展开
-
跟着《“笨办法”学Python》一起学Pyhton
个人笔记 习题22 课后作业 符号列表 符号 print 输出 # -*- coding: UTF-8 -*- OR# coding=utf-8 中文编码 coding=utf-8的“=”,左右无空格。 使用nodepad++时,设置中文编码失效: 修改nodepad++的编码——编码——编码字符集——中文——简体中文,再保存,OK。 # 注释 ””” 将复杂的字符串进行赋值 raw_input([prom..原创 2021-07-05 11:37:56 · 110 阅读 · 0 评论 -
[Python]:IndentationError: unexpected indent
python代码报错IndentationError: unexpected indent 缩进错误:意外缩进 Indentation[ˌɪndenˈteɪʃn] n.缺口;凹陷;凹痕;行首缩进;行首空格;造成凹陷(或缺口);将行首缩进 indent[ɪnˈdent , ˈɪndent] v.将(印刷或书写的行)缩进,缩格,缩排 n.订单;订购 unexpected[ˌʌnɪkˈspektɪd] adj.出乎意料的;始料不及的 解决办法: 检查缩进,该缩进的...原创 2021-07-05 09:53:30 · 255 阅读 · 0 评论 -
python下载安装
目录 官网下载对应版本 官网下载对应版本 官网:https://www.python.org/ 可以下载最新版【Download the latest version of Python】 也可以找其他想要的版本【Looking for a specific release?】 选择的2.7.15版本,点击【download】 选择【Windows x86-64 MSI installer】 安装时记住选择的安装路径 安装之后 配置环境变量,在环境变量PATH中添加刚刚安装的python原创 2021-07-01 10:19:20 · 403 阅读 · 0 评论