<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>依然爱学习</title><link>http://www.iyyds.cn/</link><description>好好学习</description><item><title>Python3 安装</title><link>http://www.iyyds.cn/?id=4</link><description>&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;本章节将向大家介绍&amp;nbsp;Python 最新版开发环境的安装步骤及如何进行环境配置&lt;br style=&quot;;padding: 0px&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;本章节需要用到的Python 最新源码，二进制文档，新闻资讯等可以在 Python 的官网查看：&lt;/p&gt;&lt;ul style=&quot;margin-top: 10px;margin-bottom: 10px;padding: 0px 0px 0px 30px;list-style-position: outside;list-style-image: none;line-height: 1.7;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;Python 官网：&lt;a href=&quot;https://www.python.org/&quot; rel=&quot;external nofollow&quot; target=&quot;_blank&quot; style=&quot;;padding: 0px;color: rgb(254, 106, 0);outline: 0px&quot;&gt;https://www.python.org/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;&lt;img src=&quot;https://atts.w3cschool.cn/attachments/image/20200918/1600395278704065.png&quot; alt=&quot;Python官网&quot; class=&quot;&quot; style=&quot;;padding: 0px;border: 0px;vertical-align: middle;max-width: 100%;text-align: center&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;;padding: 0px;color: #333333;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;background-color: #FFFFFF;text-align: center&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;;padding: 0px;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;/&gt;&lt;/p&gt;&lt;ul style=&quot;margin-top: 10px;margin-bottom: 10px;padding: 0px 0px 0px 30px;list-style-position: outside;list-style-image: none;line-height: 1.7;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;/ul&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;你可以在以下链接中下载 Python 的文档，你可以下载 HTML、PDF 和 PostScript 等格式的文档。&lt;/p&gt;&lt;ul style=&quot;margin-top: 10px;margin-bottom: 10px;padding: 0px 0px 0px 30px;list-style-position: outside;list-style-image: none;line-height: 1.7;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;Python 文档下载地址：&lt;a href=&quot;https://www.python.org/doc/&quot; rel=&quot;external nofollow&quot; target=&quot;_blank&quot; style=&quot;;padding: 0px;color: rgb(254, 106, 0);outline: 0px&quot;&gt;https://www.python.org/doc/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;&lt;img src=&quot;https://atts.w3cschool.cn/attachments/image/20200918/1600395456330367.png&quot; alt=&quot;Python官方文档下载&quot; class=&quot;&quot; style=&quot;;padding: 0px;border: 0px;vertical-align: middle;max-width: 100%&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #333333;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;background-color: #FFFFFF&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;;padding: 0px;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;/&gt;&lt;/p&gt;&lt;ul style=&quot;margin-top: 10px;margin-bottom: 10px;padding: 0px 0px 0px 30px;list-style-position: outside;list-style-image: none;line-height: 1.7;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;/ul&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;&lt;br style=&quot;;padding: 0px&quot;/&gt;&lt;/p&gt;&lt;hr style=&quot;margin: 15px 0px;padding: 0px;height: 0px;border-right: 0px;border-bottom: 0px;border-left: 0px;border-image: initial;border-top-style: solid;border-top-color: rgb(170, 170, 170);color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;/&gt;&lt;h2 style=&quot;margin: 20px 0px 10px;padding: 0px;color: rgb(51, 51, 51);line-height: 1.7;font-size: 20px;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;Python 安装&lt;/h2&gt;&lt;hr style=&quot;margin: 15px 0px;padding: 0px;height: 0px;border-right: 0px;border-bottom: 0px;border-left: 0px;border-image: initial;border-top-style: solid;border-top-color: rgb(170, 170, 170);color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;/&gt;&lt;ul style=&quot;margin-top: 10px;margin-bottom: 10px;padding: 0px 0px 0px 30px;list-style-position: outside;list-style-image: none;line-height: 1.7;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;Python 已经被移植在许多平台上（经过改动使它能够工作在不同平台上）。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;您需要下载适用于您使用平台的二进制代码，然后安装 Python。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果您平台的二进制代码是不可用的，你需要使用 C 编译器手动编译源代码。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;编译的源代码，功能上有更多的选择性， 为 Python 安装提供了更多的灵活性。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;以下为不同平台上安装 Python 的方法：&lt;/p&gt;&lt;h3 style=&quot;margin: 20px 0px 10px;padding: 0px;color: rgb(51, 51, 51);line-height: 1.7;font-size: 18px;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;Unix &amp;amp; Linux 平台安装 Python:&lt;/h3&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;以下为在 Unix &amp;amp; Linux 平台上安装 Python 的简单步骤：&lt;/p&gt;&lt;ul style=&quot;margin-top: 10px;margin-bottom: 10px;padding: 0px 0px 0px 30px;list-style-position: outside;list-style-image: none;line-height: 1.7;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;打开 WEB 浏览器访问&amp;nbsp;&lt;a href=&quot;https://www.python.org/downloads/source/&quot; rel=&quot;external nofollow&quot; target=&quot;_blank&quot; style=&quot;;padding: 0px;color: rgb(254, 106, 0);outline: 0px&quot;&gt;https://www.python.org/downloads/source/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;选择适用于 Unix/Linux 的源码压缩包。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;下载及解压压缩包&amp;nbsp;&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;font-size: 14px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;Python-3.x.x.tgz&lt;/code&gt;，&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;font-size: 14px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;3.x.x&amp;nbsp;&lt;/code&gt;为你下载的对应版本号。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果你需要自定义一些选项修改&amp;nbsp;Modules/Setup&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;以&amp;nbsp;Python3.8.5&amp;nbsp;版本为例：&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255);text-align: center&quot;&gt;&lt;img src=&quot;https://atts.w3cschool.cn/attachments/image/20200918/1600394980732776.png&quot; alt=&quot;Python3安装包下载linux/Unix版本&quot; class=&quot;&quot; style=&quot;;padding: 0px;border: 0px;vertical-align: middle;max-width: 100%&quot;/&gt;&lt;br style=&quot;;padding: 0px&quot;/&gt;&lt;/p&gt;&lt;pre style=&quot;margin-top: 15px;margin-bottom: 15px;padding: 10px;position: relative;width: 700px;box-sizing: border-box;line-height: 1.7;background-color: rgb(32, 30, 47);border-radius: 3px;font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace;overflow-x: auto;border: 1px solid rgb(32, 30, 47);color: rgb(248, 248, 242);overflow-wrap: break-word !important;white-space: pre-wrap !important&quot;&gt;#&amp;nbsp;tar&amp;nbsp;-zxvf&amp;nbsp;Python-3.8.5.tgz&amp;nbsp;#&amp;nbsp;cd&amp;nbsp;Python-3.8.5&amp;nbsp;#&amp;nbsp;./configure&amp;nbsp;#&amp;nbsp;make&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;make&amp;nbsp;install&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;检查 Python3 是否正常可用：&lt;/p&gt;&lt;pre style=&quot;margin-top: 15px;margin-bottom: 15px;padding: 10px;position: relative;width: 700px;box-sizing: border-box;line-height: 1.7;background-color: rgb(32, 30, 47);border-radius: 3px;font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace;overflow-x: auto;border: 1px solid rgb(32, 30, 47);color: rgb(248, 248, 242);overflow-wrap: break-word !important;white-space: pre-wrap !important&quot;&gt;#&amp;nbsp;python3&amp;nbsp;-V&amp;nbsp;Python&amp;nbsp;3.8.5&lt;/pre&gt;&lt;blockquote style=&quot;margin: 15px 0px;padding: 10px 5px 10px 15px;border-left: 5px solid rgb(221, 221, 221);font-size: 15px;color: rgb(85, 85, 85);background-color: rgb(245, 245, 245);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal&quot;&gt;python作为Linux系统的一个依赖，很多Linux系统都会默认安装python环境（甚至误删python环境会导致系统崩溃），在很长一段时间里，很多Linux系统都默认安装了python2，这时候学习python3就需要安装新版本的python3，而且由于Linux系统依赖的是python2，所以python2版本不能卸载。但随着python2停止维护结束了他的使命，大多数Linux系统已经更新到了python3版本，如果对python3的小版本没有特殊要求的话，最新的Linux系统基本可以做到不需要安装即可使用python环境（小编之前安装的centos 8内置的python版本为3.6.8，已经能基本满足普通的python学习需求了）。&lt;/blockquote&gt;&lt;h3 style=&quot;margin: 20px 0px 10px;padding: 0px;color: rgb(51, 51, 51);line-height: 1.7;font-size: 18px;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;Windows 平台安装 Python:&lt;/h3&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;以下为在 Windows 平台上安装 Python 的简单步骤：&lt;/p&gt;&lt;ul style=&quot;margin-top: 10px;margin-bottom: 10px;padding: 0px 0px 0px 30px;list-style-position: outside;list-style-image: none;line-height: 1.7;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;打开 WEB 浏览器访问&lt;a href=&quot;https://www.python.org/downloads/windows/&quot; rel=&quot;external nofollow&quot; target=&quot;_blank&quot; style=&quot;;padding: 0px;color: rgb(254, 106, 0);outline: 0px&quot;&gt;https://www.python.org/downloads/windows/&lt;/a&gt;&lt;br style=&quot;;padding: 0px&quot;/&gt;&lt;img src=&quot;https://atts.w3cschool.cn/attachments/image/20200919/1600505215261096.png&quot; alt=&quot;Python安装包windows版本下载&quot; class=&quot;&quot; style=&quot;;padding: 0px;border: 0px;vertical-align: middle;max-width: 100%&quot;/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;br style=&quot;;padding: 0px&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;在下载列表中选择 Windows 平台安装包，包格式为：&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;font-size: 14px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;python-3.8.5-amd64.exe&lt;/code&gt;&amp;nbsp;文件 ，&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;font-size: 14px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;&amp;nbsp;-3.8.5&lt;/code&gt;&amp;nbsp;为你要安装的版本号，&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;font-size: 14px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;-amd64&lt;/code&gt;为你系统的版本。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;下载后，双击下载包，进入 Python 安装向导，安装非常简单，你只需要使用默认的设置一直点击&amp;quot;下一步&amp;quot;直到安装完成即可。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote style=&quot;margin: 15px 0px;padding: 10px 5px 10px 15px;border-left: 5px solid rgb(221, 221, 221);font-size: 15px;color: rgb(85, 85, 85);background-color: rgb(245, 245, 245);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal&quot;&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7&quot;&gt;Windows&amp;nbsp;x86-64 为 64 位版本&lt;br style=&quot;;padding: 0px&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7&quot;&gt;Windows&amp;nbsp;x86 为 32 位版本&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7&quot;&gt;自python3.9起，官方不再支持在win7及以下版本安装和运行python，但我们仍可通过编译源代码的形式来给win7安装更高版本的python。&lt;/p&gt;&lt;/blockquote&gt;&lt;h3 style=&quot;margin: 20px 0px 10px;padding: 0px;color: rgb(51, 51, 51);line-height: 1.7;font-size: 18px;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;MAC 平台安装 Python:&lt;/h3&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;MAC 系统一般都自带有 Python2.7 版本 的环境，你也可以在链接&amp;nbsp;&lt;a href=&quot;https://www.python.org/downloads/mac-osx/&quot; rel=&quot;external nofollow&quot; target=&quot;_blank&quot; style=&quot;;padding: 0px;color: rgb(254, 106, 0);outline: 0px&quot;&gt;https://www.python.org/downloads/mac-osx/&lt;/a&gt;&amp;nbsp;上下载最新版安装。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255);text-align: center&quot;&gt;&lt;img src=&quot;https://atts.w3cschool.cn/attachments/image/20200918/1600398717560696.png&quot; alt=&quot;Python安装包官方下载MacOS版本&quot; class=&quot;&quot; style=&quot;;padding: 0px;border: 0px;vertical-align: middle;max-width: 100%&quot;/&gt;&lt;br style=&quot;;padding: 0px&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;&lt;br style=&quot;;padding: 0px&quot;/&gt;&lt;/p&gt;&lt;hr style=&quot;margin: 15px 0px;padding: 0px;height: 0px;border-right: 0px;border-bottom: 0px;border-left: 0px;border-image: initial;border-top-style: solid;border-top-color: rgb(170, 170, 170);color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;/&gt;&lt;h2 style=&quot;margin: 20px 0px 10px;padding: 0px;color: rgb(51, 51, 51);line-height: 1.7;font-size: 20px;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;环境变量配置&lt;/h2&gt;&lt;ul style=&quot;margin-top: 10px;margin-bottom: 10px;padding: 0px 0px 0px 30px;list-style-position: outside;list-style-image: none;line-height: 1.7;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;程序和可执行文件可以在许多目录，而这些路径很可能不在操作系统提供可执行文件的搜索路径中。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;path (路径)存储在环境变量中，这是由操作系统维护的一个命名的字符串。这些变量包含可用的命令行解释器和其他程序的信息。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Unix 或 Windows 中路径变量为 PATH（UNIX 区分大小写，Windows 不区分大小写）。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;在 Mac OS 中，安装程序过程中改变了 python 的安装路径。如果你需要在其他目录引用 Python，你必须在 path 中添加 Python 目录。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote style=&quot;margin: 15px 0px;padding: 10px 5px 10px 15px;border-left: 5px solid rgb(221, 221, 221);font-size: 15px;color: rgb(85, 85, 85);background-color: rgb(245, 245, 245);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal&quot;&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7&quot;&gt;&amp;nbsp;简单地说，&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;font-size: 14px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;python&lt;/code&gt;这个指令（还记得上一节介绍的&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;font-size: 14px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;python -v&lt;/code&gt;嘛，这就是python指令）在系统中是不存在的，安装完python后就有了python这个指令，但我们需要告诉系统，在哪里可以找到python这个指令，而path路径变量，就是起到这样一个作用。&lt;/p&gt;&lt;/blockquote&gt;&lt;h3 style=&quot;margin: 20px 0px 10px;padding: 0px;color: rgb(51, 51, 51);line-height: 1.7;font-size: 18px;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;在 Unix/Linux 设置环境变量&lt;/h3&gt;&lt;ul style=&quot;margin-top: 10px;margin-bottom: 10px;padding: 0px 0px 0px 30px;list-style-position: outside;list-style-image: none;line-height: 1.7;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;在 csh shell:&amp;nbsp;输入&amp;nbsp;&lt;/p&gt;&lt;pre style=&quot;margin-top: 15px;margin-bottom: 15px;padding: 10px;position: relative;width: 670px;box-sizing: border-box;line-height: 1.7;background-color: rgb(32, 30, 47);border-radius: 3px;font-size: 14px;font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace;overflow-x: auto;border: 1px solid rgb(32, 30, 47);color: rgb(248, 248, 242);overflow-wrap: break-word !important;white-space: pre-wrap !important&quot;&gt;setenv&amp;nbsp;PATH&amp;nbsp;&amp;quot;$PATH:/w3cschool/local/bin/python&amp;quot;&lt;/pre&gt;&lt;p&gt;按下&amp;nbsp;Enter。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;在 bash shell (Linux) 输入 :&lt;br style=&quot;;padding: 0px&quot;/&gt;&lt;/p&gt;&lt;pre style=&quot;margin-top: 15px;margin-bottom: 15px;padding: 10px;position: relative;width: 670px;box-sizing: border-box;line-height: 1.7;background-color: rgb(32, 30, 47);border-radius: 3px;font-size: 14px;font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace;overflow-x: auto;border: 1px solid rgb(32, 30, 47);color: rgb(248, 248, 242);overflow-wrap: break-word !important;white-space: pre-wrap !important&quot;&gt;export&amp;nbsp;PATH=&amp;quot;$PATH:/w3cschool/local/bin/python&amp;quot;&lt;/pre&gt;&lt;p&gt;按下&amp;nbsp;Enter&amp;nbsp;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;在 sh 或者 ksh shell 输入:&amp;nbsp;&lt;/p&gt;&lt;pre style=&quot;margin-top: 15px;margin-bottom: 15px;padding: 10px;position: relative;width: 670px;box-sizing: border-box;line-height: 1.7;background-color: rgb(32, 30, 47);border-radius: 3px;font-size: 14px;font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace;overflow-x: auto;border: 1px solid rgb(32, 30, 47);color: rgb(248, 248, 242);overflow-wrap: break-word !important;white-space: pre-wrap !important&quot;&gt;PATH=&amp;quot;$PATH:/w3cschool/local/bin/python&amp;quot;&lt;/pre&gt;&lt;p&gt;按下 Enter。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;注意:&amp;nbsp;&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;font-size: 14px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;/w3cschool/local/bin/python&lt;/code&gt;&amp;nbsp;是 Python 的安装目录。&lt;/p&gt;&lt;h3 style=&quot;margin: 20px 0px 10px;padding: 0px;color: rgb(51, 51, 51);line-height: 1.7;font-size: 18px;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;在 Windows 设置环境变量&lt;/h3&gt;&lt;blockquote style=&quot;margin: 15px 0px;padding: 10px 5px 10px 15px;border-left: 5px solid rgb(221, 221, 221);font-size: 15px;color: rgb(85, 85, 85);background-color: rgb(245, 245, 245);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal&quot;&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7&quot;&gt;&amp;nbsp;注意！在python安装的时候勾选自动添加python到path路径可可以免去配置环境这个过程，本教程介绍的是当在命令提示符中输入python显示指令不存在的情况下需要进行的操作。&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;在环境变量中添加 Python 目录：&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;在命令提示符中(cmd) : 输入&lt;/p&gt;&lt;pre style=&quot;margin-top: 15px;margin-bottom: 15px;padding: 10px;position: relative;width: 700px;box-sizing: border-box;line-height: 1.7;background-color: rgb(32, 30, 47);border-radius: 3px;font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace;overflow-x: auto;border: 1px solid rgb(32, 30, 47);color: rgb(248, 248, 242);overflow-wrap: break-word !important;white-space: pre-wrap !important&quot;&gt;path=%path%;C:\Python&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;按下&amp;quot;Enter&amp;quot;。&lt;/p&gt;&lt;blockquote style=&quot;margin: 15px 0px;padding: 10px 5px 10px 15px;border-left: 5px solid rgb(221, 221, 221);font-size: 15px;color: rgb(85, 85, 85);background-color: rgb(245, 245, 245);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal&quot;&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7&quot;&gt;注意: C:\Python 是 Python 的安装目录。&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;也可以通过以下方式设置：&lt;/p&gt;&lt;ul style=&quot;margin-top: 10px;margin-bottom: 10px;padding: 0px 0px 0px 30px;list-style-position: outside;list-style-image: none;line-height: 1.7;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;右键点击&amp;quot;计算机&amp;quot;，然后点击&amp;quot;属性&amp;quot;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;然后点击&amp;quot;高级系统设置&amp;quot;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;选择&amp;quot;系统变量&amp;quot;窗口下面的&amp;quot;Path&amp;quot;,双击即可！&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;然后在&amp;quot;&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;font-size: 14px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;Path&lt;/code&gt;&amp;quot;行，添加 python 安装路径即可(我的D:\Python32)，所以在后面，添加该路径即可。 ps：记住，路径直接用分号&amp;quot;&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;font-size: 14px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;;&lt;/code&gt;&amp;quot;隔开！&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;最后设置成功以后，在 cmd 命令行，输入命令&amp;quot;&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;font-size: 14px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;python&lt;/code&gt;&amp;quot;，就可以有相关显示。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;&lt;br style=&quot;;padding: 0px&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;&lt;img src=&quot;https://www.runoob.com/wp-content/uploads/2013/11/201209201707594792.png&quot; rel=&quot;external nofollow&quot; class=&quot;&quot; style=&quot;;padding: 0px;border: 0px;vertical-align: middle;max-width: 100%&quot;/&gt;&lt;br style=&quot;;padding: 0px&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;在win10中配置环境变量与win7类似：&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;在电脑桌面右键点击此电脑，点击属性选项。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;&lt;img src=&quot;https://atts.w3cschool.cn/attachments/day_211009/202110091645327648.jpeg&quot; alt=&quot;右击进入计算机属性&quot; style=&quot;;padding: 0px;border: 0px;vertical-align: middle;max-width: 100%&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;在关于页面中选择高级系统设置，点击环境变量进行环境变量的配置。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;&lt;img src=&quot;https://atts.w3cschool.cn/attachments/day_211009/202110091645321268.jpeg&quot; alt=&quot;环境变量的设置&quot; style=&quot;;padding: 0px;border: 0px;vertical-align: middle;max-width: 100%&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;只需在 PATH 变量原有的变量上新增以下变量值即可：&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;Python 的安装文件夹。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;python 安装文件夹下的 Scripts 文件夹。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;&lt;img src=&quot;https://atts.w3cschool.cn/attachments/day_211009/202110091645336724.jpeg&quot; alt=&quot;环境变量&quot; style=&quot;;padding: 0px;border: 0px;vertical-align: middle;max-width: 100%&quot;/&gt;&lt;/p&gt;&lt;blockquote style=&quot;margin: 15px 0px;padding: 10px 5px 10px 15px;border-left: 5px solid rgb(221, 221, 221);font-size: 15px;color: rgb(85, 85, 85);background-color: rgb(245, 245, 245);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal&quot;&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7&quot;&gt;&amp;nbsp;注意！添加python路径是为了配置python指令，使得python指令可以使用，而配置script文件夹则是为了配置pip指令（一个python包管理工具）。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7&quot;&gt;另外，在安装python的时候如果有勾选添加环境变量的话（下图 add python 3.9 to path），默认会将环境变量配置完毕。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7&quot;&gt;&lt;img src=&quot;https://atts.w3cschool.cn/attachments/day_211009/202110091649519820.jpg&quot; alt=&quot;python安装界面&quot; style=&quot;;padding: 0px;border: 0px;vertical-align: middle;max-width: 100%&quot;/&gt;&lt;br style=&quot;;padding: 0px&quot;/&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;hr style=&quot;margin: 15px 0px;padding: 0px;height: 0px;border-right: 0px;border-bottom: 0px;border-left: 0px;border-image: initial;border-top-style: solid;border-top-color: rgb(170, 170, 170);color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;/&gt;&lt;h2 style=&quot;margin: 20px 0px 10px;padding: 0px;color: rgb(51, 51, 51);line-height: 1.7;font-size: 20px;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;Python 环境变量&lt;/h2&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;下面几个重要的环境变量，它应用于 Python：&lt;/p&gt;&lt;table class=&quot;reference notranslate&quot; width=&quot;700&quot;&gt;&lt;tbody style=&quot;;padding: 0px&quot;&gt;&lt;tr style=&quot;;padding: 0px;background-color: rgb(239, 239, 239)&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;;padding: 3px;background-color: rgb(189, 189, 189);border-top-color: rgb(189, 189, 189);border-right-color: rgb(189, 189, 189);border-bottom: none;border-left-color: rgb(189, 189, 189);color: rgb(255, 255, 255);font-size: 14px;vertical-align: top;text-align: left&quot;&gt;变量名&lt;/th&gt;&lt;th style=&quot;;padding: 3px;background-color: rgb(189, 189, 189);border-top-color: rgb(189, 189, 189);border-right-color: rgb(189, 189, 189);border-bottom: none;border-left-color: rgb(189, 189, 189);color: rgb(255, 255, 255);font-size: 14px;vertical-align: top;text-align: left&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;;padding: 0px&quot;&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;PYTHONPATH&lt;/td&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;PYTHONPATH 是 Python 搜索路径，默认我们 import 的模块都会从 PYTHONPATH 里面寻找。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;;padding: 0px;background-color: rgb(239, 239, 239)&quot;&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;PYTHONSTARTUP&lt;/td&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;Python 启动后，先寻找 PYTHONSTARTUP 环境变量，然后执行此变量指定的文件中的代码。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;;padding: 0px&quot;&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;PYTHONCASEOK&lt;/td&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;加入 PYTHONCASEOK 的环境变量, 就会使 python 导入模块的时候不区分大小写.&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;;padding: 0px;background-color: rgb(239, 239, 239)&quot;&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;PYTHONHOME&lt;/td&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;另一种模块搜索路径。它通常内嵌于的 PYTHONSTARTUP 或 PYTHONPATH 目录中，使得两个模块库更容易切换。&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;hr style=&quot;margin: 15px 0px;padding: 0px;height: 0px;border-right: 0px;border-bottom: 0px;border-left: 0px;border-image: initial;border-top-style: solid;border-top-color: rgb(170, 170, 170);color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;/&gt;&lt;h2 style=&quot;margin: 20px 0px 10px;padding: 0px;color: rgb(51, 51, 51);line-height: 1.7;font-size: 20px;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;运行Python&lt;/h2&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;有三种方式可以运行 Python：&lt;/p&gt;&lt;h3 style=&quot;margin: 20px 0px 10px;padding: 0px;color: rgb(51, 51, 51);line-height: 1.7;font-size: 18px;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;1. 交互式解释器：&lt;/h3&gt;&lt;ul style=&quot;margin-top: 10px;margin-bottom: 10px;padding: 0px 0px 0px 30px;list-style-position: outside;list-style-image: none;line-height: 1.7;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;你可以通过命令行窗口进入 Python，并在交互式解释器中开始编写 Python 代码。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;你可以在 Unix、DOS 或任何其他提供了命令行或者 shell 的系统进行 Python 编码工作。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre style=&quot;margin-top: 15px;margin-bottom: 15px;padding: 10px;position: relative;width: 700px;box-sizing: border-box;line-height: 1.7;background-color: rgb(32, 30, 47);border-radius: 3px;font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace;overflow-x: auto;border: 1px solid rgb(32, 30, 47);color: rgb(248, 248, 242);overflow-wrap: break-word !important;white-space: pre-wrap !important&quot;&gt;$&amp;nbsp;python&amp;nbsp;#&amp;nbsp;Unix/Linux&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;或者&lt;/p&gt;&lt;pre style=&quot;margin-top: 15px;margin-bottom: 15px;padding: 10px;position: relative;width: 700px;box-sizing: border-box;line-height: 1.7;background-color: rgb(32, 30, 47);border-radius: 3px;font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace;overflow-x: auto;border: 1px solid rgb(32, 30, 47);color: rgb(248, 248, 242);overflow-wrap: break-word !important;white-space: pre-wrap !important&quot;&gt;C:&amp;gt;python&amp;nbsp;#&amp;nbsp;Windows/DOS&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;以下为Python命令行参数：&lt;/p&gt;&lt;table class=&quot;reference notranslate&quot; width=&quot;700&quot;&gt;&lt;tbody style=&quot;;padding: 0px&quot;&gt;&lt;tr style=&quot;;padding: 0px;background-color: rgb(239, 239, 239)&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;;padding: 3px;background-color: rgb(189, 189, 189);border-top-color: rgb(189, 189, 189);border-right-color: rgb(189, 189, 189);border-bottom: none;border-left-color: rgb(189, 189, 189);color: rgb(255, 255, 255);font-size: 14px;vertical-align: top;text-align: left&quot;&gt;选项&lt;/th&gt;&lt;th style=&quot;;padding: 3px;background-color: rgb(189, 189, 189);border-top-color: rgb(189, 189, 189);border-right-color: rgb(189, 189, 189);border-bottom: none;border-left-color: rgb(189, 189, 189);color: rgb(255, 255, 255);font-size: 14px;vertical-align: top;text-align: left&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;tr style=&quot;;padding: 0px&quot;&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;-d&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;在解析时显示调试信息&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;;padding: 0px;background-color: rgb(239, 239, 239)&quot;&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;-O&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;生成优化代码 ( &lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;.pyo&lt;/code&gt; 文件 )&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;;padding: 0px&quot;&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;-S&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;启动时不引入查找 Python 路径的位置&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;;padding: 0px;background-color: rgb(239, 239, 239)&quot;&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;-V&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;输出 Python 版本号&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;;padding: 0px&quot;&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;-X&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;从 1.6 版本之后基于内建的异常（仅仅用于字符串）已过时。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;;padding: 0px;background-color: rgb(239, 239, 239)&quot;&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;-c cmd&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;执行 Python 脚本，并将运行结果作为 cmd 字符串。&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;;padding: 0px&quot;&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;&lt;code style=&quot;margin: 0px 5px;padding: 0px 4px;display: initial;background: rgb(249, 242, 244);border-radius: 3px;color: rgb(199, 37, 78);font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace&quot;&gt;file&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;padding: 7px 5px; min-width: 40px; vertical-align: top; box-sizing: border-box; font-size: 14px;&quot; height=&quot;30&quot;&gt;在给定的 python 文件执行 python 脚本。&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h3 style=&quot;margin: 20px 0px 10px;padding: 0px;color: rgb(51, 51, 51);line-height: 1.7;font-size: 18px;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;2. 命令行脚本&lt;/h3&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;在你的应用程序中通过引入解释器可以在命令行中执行 Python 脚本，如下所示：&lt;/p&gt;&lt;pre style=&quot;margin-top: 15px;margin-bottom: 15px;padding: 10px;position: relative;width: 700px;box-sizing: border-box;line-height: 1.7;background-color: rgb(32, 30, 47);border-radius: 3px;font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace;overflow-x: auto;border: 1px solid rgb(32, 30, 47);color: rgb(248, 248, 242);overflow-wrap: break-word !important;white-space: pre-wrap !important&quot;&gt;$&amp;nbsp;python&amp;nbsp;script.py&amp;nbsp;#&amp;nbsp;Unix/Linux&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;或者&lt;/p&gt;&lt;pre style=&quot;margin-top: 15px;margin-bottom: 15px;padding: 10px;position: relative;width: 700px;box-sizing: border-box;line-height: 1.7;background-color: rgb(32, 30, 47);border-radius: 3px;font-family: Consolas, &amp;#39;Liberation Mono&amp;#39;, Menlo, Courier, monospace;overflow-x: auto;border: 1px solid rgb(32, 30, 47);color: rgb(248, 248, 242);overflow-wrap: break-word !important;white-space: pre-wrap !important&quot;&gt;C:&amp;gt;python&amp;nbsp;script.py&amp;nbsp;#&amp;nbsp;Windows/DOS&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px;padding: 0px;overflow-wrap: break-word;color: rgb(51, 51, 51);line-height: 1.7;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;注意：在执行脚本时，请检查脚本是否有可执行权限。&lt;/p&gt;&lt;h3 style=&quot;margin: 20px 0px 10px;padding: 0px;color: rgb(51, 51, 51);line-height: 1.7;font-size: 18px;font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;white-space: normal;background-color: rgb(255, 255, 255)&quot;&gt;3. 集成开发环境（IDE：Integrated Development Environment）: PyCharm&lt;/h3&gt;&lt;ul style=&quot;margin-top: 10px;margin-bottom: 10px;padding: 0px 0px 0px 30px;list-style-position: outside;list-style-image: none;line-height: 1.7;color: rgb(51, 51, 51);font-family: -apple-system, &amp;#39;system-ui&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, &amp;#39;Source Han Sans SC&amp;#39;, &amp;#39;Noto Sans CJK SC&amp;#39;, &amp;#39;WenQuanYi Micro Hei&amp;#39;, sans-serif;font-size: 15px;white-space: normal;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;PyCharm 是由 JetBrains 打造的一款 Python IDE，支持 macOS、 Windows、 Linux 系统。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;PyCharm 功能 : 调试、语法高亮、Project管理、代码跳转、智能提示、自动完成、单元测试、版本控制等&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;PyCharm 下载地址 :&amp;nbsp;&lt;a href=&quot;https://www.jetbrains.com/pycharm/download/&quot; rel=&quot;external nofollow&quot; target=&quot;_blank&quot; style=&quot;;padding: 0px;color: rgb(254, 106, 0);outline: 0px&quot;&gt;https://www.jetbrains.com/pycharm/download/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;PyCharm 安装教程地址 :&lt;a href=&quot;https://www.w3cschool.cn/python3/python3-l4i738c3.html&quot; style=&quot;;padding: 0px;color: rgb(254, 106, 0);outline: 0px&quot;&gt;https://www.w3cschool.cn/python3/python3-l4i738c3.html&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Python IDE 安装教程地址：&lt;a href=&quot;https://www.w3cschool.cn/python/python-ide.html&quot; style=&quot;;padding: 0px;color: rgb(254, 106, 0);outline: 0px&quot;&gt;https://www.w3cschool.cn/python/python-ide.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Fri, 14 Jan 2022 15:14:39 +0800</pubDate></item><item><title>Python3 简介</title><link>http://www.iyyds.cn/?id=3</link><description>&lt;blockquote style=&quot;margin: 0px 0px 15px; padding: 10px 5px 10px 15px; border-left: 5px solid rgb(221, 221, 221); font-size: 15px; color: rgb(85, 85, 85); background-color: rgb(245, 245, 245); font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; white-space: normal;&quot;&gt;&lt;p style=&quot;margin-top: 0px; padding: 0px; overflow-wrap: break-word; color: rgb(51, 51, 51); line-height: 1.7;&quot;&gt;&amp;nbsp;本节对学习python编程没有太多实质性的帮助，但本节介绍了一些python的历史和特性，有兴趣的小伙伴可以了解一下。&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;margin-top: 0px; padding: 0px; overflow-wrap: break-word; color: rgb(51, 51, 51); line-height: 1.7; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;Python 是一个高层次的结合了解释性、编译性、互动性和面向对象的脚本语言。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; padding: 0px; overflow-wrap: break-word; color: rgb(51, 51, 51); line-height: 1.7; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;Python 的设计具有很强的可读性，相比其他语言经常使用英文关键字，其他语言的一些标点符号，它具有比其他语言更有特色语法结构。&lt;/p&gt;&lt;ul style=&quot;margin-top: 10px; margin-bottom: 10px; padding: 0px 0px 0px 30px; list-style-position: outside; list-style-image: none; line-height: 1.7; color: rgb(51, 51, 51); font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;Python 是一种解释型语言：&amp;nbsp;这意味着开发过程中没有了编译这个环节。类似于PHP和Perl语言。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Python 是交互式语言：&amp;nbsp;这意味着，您可以在一个 Python 提示符&amp;nbsp;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;后直接执行代码。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Python 是面向对象语言:&amp;nbsp;这意味着Python支持面向对象的风格或代码封装在对象的编程技术。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Python 是初学者的语言：Python 对初级程序员而言，是一种伟大的语言，它支持广泛的应用程序开发，从简单的文字处理到服务器再到游戏，它都可以胜任。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 style=&quot;margin: 20px 0px 10px; padding: 0px; color: rgb(51, 51, 51); line-height: 1.7; font-size: 20px; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;Python 发展历史&lt;/h2&gt;&lt;p style=&quot;margin-top: 0px; padding: 0px; overflow-wrap: break-word; color: rgb(51, 51, 51); line-height: 1.7; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;Python 是由 Guido van Rossum 在八十年代末和九十年代初，在荷兰国家数学和计算机科学研究所设计出来的。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; padding: 0px; overflow-wrap: break-word; color: rgb(51, 51, 51); line-height: 1.7; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;Python 本身也是由诸多其他语言发展而来的,这包括 ABC、Modula-3、C、C++、Algol-68、SmallTalk、Unix shell 和其他的脚本语言等等。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; padding: 0px; overflow-wrap: break-word; color: rgb(51, 51, 51); line-height: 1.7; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;像 Perl 语言一样，Python 源代码同样遵循 GPL(GNU General Public License)协议。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; padding: 0px; overflow-wrap: break-word; color: rgb(51, 51, 51); line-height: 1.7; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;现在 Python 是由一个核心开发团队在维护，Guido van Rossum 仍然占据着至关重要的作用，指导其进展。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; padding: 0px; overflow-wrap: break-word; color: rgb(51, 51, 51); line-height: 1.7; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;Python 2.0 于 2000 年 10 月 16 日发布，增加了实现完整的垃圾回收，并且支持 Unicode。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; padding: 0px; overflow-wrap: break-word; color: rgb(51, 51, 51); line-height: 1.7; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;Python 3.0 于 2008 年 12 月 3 日发布，此版不完全兼容之前的 Python 源代码。不过，很多新特性后来也被移植到旧的Python 2.6/2.7版本。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; padding: 0px; overflow-wrap: break-word; color: rgb(51, 51, 51); line-height: 1.7; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;Python 3.0 版本，常被称为 Python 3000，或简称 Py3k。相对于 Python 的早期版本，这是一个较大的升级。&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; padding: 0px; overflow-wrap: break-word; color: rgb(51, 51, 51); line-height: 1.7; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;Python 2.7 被确定为最后一个 Python 2.x 版本，它除了支持 Python 2.x 语法外，还支持部分 Python 3.1 语法。&lt;/p&gt;&lt;h2 style=&quot;margin: 20px 0px 10px; padding: 0px; color: rgb(51, 51, 51); line-height: 1.7; font-size: 20px; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;Python 特点&lt;/h2&gt;&lt;ul style=&quot;margin-top: 10px; margin-bottom: 10px; padding: 0px 0px 0px 30px; list-style-position: outside; list-style-image: none; line-height: 1.7; color: rgb(51, 51, 51); font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;1.易于学习：Python有相对较少的关键字，结构简单，和一个明确定义的语法，学习起来更加简单。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;2.易于阅读：Python代码定义的更清晰。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;3.易于维护：Python的成功在于它的源代码是相当容易维护的。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;4.一个广泛的标准库：Python的最大的优势之一是丰富的库，跨平台的，在UNIX，Windows和Macintosh兼容很好。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;5.互动模式：互动模式的支持，您可以从终端输入执行代码并获得结果的语言，互动的测试和调试代码片断。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;6.可移植：基于其开放源代码的特性，Python已经被移植（也就是使其工作）到许多平台。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;7.可扩展：如果你需要一段运行很快的关键代码，或者是想要编写一些不愿开放的算法，你可以使用C或C++完成那部分程序，然后从你的Python程序中调用。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;8.数据库：Python提供所有主要的商业数据库的接口。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;9.GUI编程：Python支持GUI可以创建和移植到许多系统调用。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;10.可嵌入:&amp;nbsp;你可以将Python嵌入到C/C++程序，让你的程序的用户获得&amp;quot;脚本化&amp;quot;的能力。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 style=&quot;margin: 20px 0px 10px; padding: 0px; color: rgb(51, 51, 51); line-height: 1.7; font-size: 20px; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;Python 应用&lt;/h2&gt;&lt;ul style=&quot;margin-top: 10px; margin-bottom: 10px; padding: 0px 0px 0px 30px; list-style-position: outside; list-style-image: none; line-height: 1.7; color: rgb(51, 51, 51); font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;网站建设，以下网站应用了python进行web开发：&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Youtube - 视频社交网站&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Reddit - 社交分享网站&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Dropbox - 文件分享服务&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;豆瓣网 - 图书、唱片、电影等文化产品的资料数据库网站&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;知乎 - 一个问答网站&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;果壳 - 一个泛科技主题网站&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Bottle - Python微Web框架&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;EVE - 网络游戏EVE大量使用Python进行开发&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Blender - 使用Python作为建模工具与GUI语言的开源3D绘图软件&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Inkscape - 一个开源的SVG矢量图形编辑器。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;机器学习与人工智能 - TensorFlow，Keras，pytorch等机器学习库让python成为最适合机器学习的语言&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;数据分析与数据挖掘 - 各式各样的python爬虫可以帮助数据分析工程师获取数据，而丰富的python数据处理库可以处理这些数据并以可视化形式或者可调用形式展现出来&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;科学计算和算法设计 - 曾经matlab作为科学计算的行业标杆，但现在python正在蚕食它的市场。而简单的语法让python更适合进行算法开发（算法工程师可以轻松上手算法开发）&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;IDLE - 作为python安装时自带的IDE，这款IDE就是由 Guido van Rossum 使用python+tkinter写出来的。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;···&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 style=&quot;margin: 20px 0px 10px; padding: 0px; color: rgb(51, 51, 51); line-height: 1.7; font-size: 20px; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;python的缺点&lt;/h2&gt;&lt;p style=&quot;margin-top: 0px; padding: 0px; overflow-wrap: break-word; color: rgb(51, 51, 51); line-height: 1.7; font-family: -apple-system, &amp;quot;system-ui&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Source Han Sans SC&amp;quot;, &amp;quot;Noto Sans CJK SC&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);&quot;&gt;有优点就会有缺点，python作为一门解释型语言，拥有了解释型语言的优点（跨平台可移植性，动态变量等）也有解释型语言的缺点（效率较低）。另外，python作为一门近乎万能的语言，就像瑞士军刀一样，他拥有很多功能，但在具体的功能上都不如一些专精的语言，当对性能有一定要求的时候，python不是好选择！&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Tue, 11 Jan 2022 19:25:58 +0800</pubDate></item></channel></rss>