我的Python学习笔记:怎么样进行Python的下载、安装与运用?
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">学习编程要比学习英语更重要,<span style="color: black;">由于</span>编程语言<span style="color: black;">能够</span>影响<span style="color: black;">全世界</span>70亿人。 ——苹果CEO库克</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">我是嫩白菜,一个很<span style="color: black;">爱好</span>学习的小小小白菜。<span style="color: black;">近期</span>在浏览信息时,进入了一个叫Python的<span style="color: black;">行业</span>,<span style="color: black;">而后</span>不经意间<span style="color: black;">得到</span>了在Python<span style="color: black;">研发</span><span style="color: black;">行业</span>流传的非常刺激的<span style="color: black;">这般</span>一句话:人生苦短,我用Python!这句话出自Bruce Eckel,原文是:Life is short,you need Python。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">到底Python有什么魔力呢?</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">我带着这个问题去作了简单的<span style="color: black;">认识</span>,感觉还真不是吹的,确实很牛掰!如<span style="color: black;">这般</span>一个例子:a=3,b=4,编程交换a、b的值。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">vb、c等语言是<span style="color: black;">这般</span>:t=a,a=b,b=t</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Python是<span style="color: black;">这般</span>:a,b=b,a</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">好了,Python勾起了我的兴趣,我准备去学习你~~~</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2020年5月12日,天气阴(或许是<span style="color: black;">由于</span>日子特殊吧,天气并<span style="color: black;">欠好</span>,2008年5月12日,值得记忆)</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1、</span>下载Python</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">想要</span>学习Python,<span style="color: black;">必要</span>要有能够进行Python编程的环境。这是我做的<span style="color: black;">第1</span>个任务,而这个<span style="color: black;">针对</span>我<span style="color: black;">来讲</span>并不太难。<span style="color: black;">首要</span>我打开浏览器,在搜索引擎里里搜索Python官网,找到带有“官网”字样的链接点进去,<span style="color: black;">或</span>直接输入https://www.python.org/网址进入。不<span style="color: black;">晓得</span>是我的网络问题还是<span style="color: black;">由于</span>其它<span style="color: black;">原由</span>,<span style="color: black;">始终</span>打不开这个网站,后来试了多次<span style="color: black;">最终</span>打开了,<span style="color: black;">然则</span>速度很慢(国外服务器的<span style="color: black;">原由</span>?)。<span style="color: black;">因此</span>以后<span style="color: black;">倘若</span>我再想下载Python的话,我会到国内的一些软件站上去下载,<span style="color: black;">或</span>去应用商店<span style="color: black;">亦</span><span style="color: black;">能够</span>下载,<span style="color: black;">况且</span>速度超快。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/32c86459aeec46179b4078d2ea61cc9c~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723897025&x-signature=byxob0KkWuybTBHf6KBONreBsEs%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">搜索Python官网</p>
</div>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/927c7290d5cf41cab54e453957290e67~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723897025&x-signature=Rww2xsNq%2Baar6%2BPr%2Fw3a5h5Rrpc%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">打开Python官网</p>
</div>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/4eef8c011124463bb031d4189d997a04~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723897025&x-signature=1zYLU89CW7u4W3KerglzLvedMX8%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">能够</span>到<span style="color: black;">有些</span>应用商店下载,速度快</p>
</div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">进入官网后,一串的英文告诉我学习英语还是有必要的,<span style="color: black;">最少</span><span style="color: black;">亦</span>得懂得<span style="color: black;">有些</span>简单的单词意思;不会说<span style="color: black;">不碍事</span>,<span style="color: black;">最少</span>得认识它。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p9-sign.toutiaoimg.com/pgc-image/822db24e58b34cbbbc313d64ba8e0537~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723897025&x-signature=yrXQouAyDz7JBITxMyWRp0dkELQ%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">官网首页中有Downloads(下载)</p>
</div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">你看那个Downloads就应该是下载的意思了。我在学习的时候是3.8.2版本,可见我真是个新手啊。点它下载吧!我的是Windows操作系统,假如你是其它的系统,<span style="color: black;">亦</span><span style="color: black;">能够</span>到相应类别下去下载,<span style="color: black;">办法</span>雷同。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">2、</span>安装</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/1c1bec6975364d0c9ddc55f42e78532a~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723897025&x-signature=cY7%2B%2B0xZ7dG8XjCws1uZBpgPpMA%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Python安装包</p>
</div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">下载好后,会得到一个安装包,安装包并不大,<span style="color: black;">仅有</span>25.3MB,一想到以后很<span style="color: black;">长期</span>会与其打交道,心里别提有多高兴了。好了,双击打开它,<span style="color: black;">显现</span>了安全警告,这是系统为了安全而设置的,直接点击运行就OK了。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/caab4610092747908a5854eeeb00d002~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723897025&x-signature=KNlpoAH5IpXj%2FuSGL67ZxmnuBpk%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">点击运行</p>
</div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">第二步,其实是真正安装的<span style="color: black;">第1</span>步,<span style="color: black;">亦</span>是非常重要的一步,在安装界面上要勾选“Add Python 3.8 to PATH”,<span style="color: black;">由于</span>勾选了它,会自动给你配置好环境变量。<span style="color: black;">倘若</span>你想手动个性化配置就不要勾选。我推荐勾选这个选项,省得麻烦。接下来就点击“Install Now”了,<span style="color: black;">亦</span><span style="color: black;">便是</span><span style="color: black;">此刻</span>解压安装。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/0b7df244f9f54fffb0018a44a1cbd790~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723897025&x-signature=9I6jFzLOAO20jSV%2Bs1%2B3mGZsDmY%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">重要:勾选“Add Python 3.8 to PATH”</p>
</div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而后</span><span style="color: black;">便是</span>等待的过程,时间并不长。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/f1081c0b08df455b862ba712cd157f17~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723897025&x-signature=Eqr5AukgN0mFNnDSq6luiVApnvA%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">等待安装完成</p>
</div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">最后,在<span style="color: black;">显现</span>“Setup was successful”时,就告诉我安装成功了,直接点击Close按钮关闭就好了。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/3f04b3cf885d40e8a7cd4eadb7eedef7~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723897025&x-signature=hE7NkI2yVL8i4t%2BP%2F%2FLhLjuPnHM%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">安装成功</p>
</div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在政企安装过程中,我本以为要<span style="color: black;">根据</span>以往安装其它软件的<span style="color: black;">办法</span><span style="color: black;">循序渐进</span>地进行着操作,毕竟什么Next、Back、Finish等单词的意思我<span style="color: black;">已然</span>烂熟于心了,可惜<span style="color: black;">这次</span>没用到,<span style="color: black;">然则</span>这些个单词还是记住的好。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">3、</span>从Hello World!<span style="color: black;">起始</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">以前不管学习哪种编程语言,<span style="color: black;">第1</span>条语句<span style="color: black;">便是</span>“Hello World!”。(<span style="color: black;">由于</span>《The C Programming Language》中<span style="color: black;">运用</span>它<span style="color: black;">做为</span><span style="color: black;">第1</span>个演示程序,非常著名,<span style="color: black;">因此</span>后来的程序员在学习编程或进行设备调试时延续了这一习惯。)今天,我学习Python,<span style="color: black;">亦</span>要从这一条语句<span style="color: black;">起始</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">首要</span>打开Python编译环境。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/cd2316e96d4345e48e7621d4d7405907~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723897025&x-signature=oiaJVTmnPKt2PH9hJ2Nd%2BXyn7dw%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">两种模式</p>
</div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Python3.8:<span style="color: black;">能够</span>在这个环境下直接输入代码,它<span style="color: black;">亦</span>会立即给我<span style="color: black;">回复</span>。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/953debafeb5c4dd592ebaab4e5bdf93d~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723897025&x-signature=COR73TDm1gcZIDNop%2FDzLDrlH9c%3D" style="width: 50%; margin-bottom: 20px;"></div>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/dfa00d6c51014e069d209540505d567f~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723897025&x-signature=tqTPGInVOE3INRtDf%2BhErfxCJCY%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">亲爱的Hello world!</p>
</div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">IDLE(Python3.8):<span style="color: black;">针对</span>代码量大的程序,我可不想再重头<span style="color: black;">起始</span>输入,<span style="color: black;">那样</span>IDLE<span style="color: black;">能够</span><span style="color: black;">帮忙</span>我,<span style="color: black;">由于</span>它<span style="color: black;">能够</span>新建文件,把代码进行<span style="color: black;">保留</span>。</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/92eabe9b844b4646ab3d130af17849e8~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723897025&x-signature=j32XLY9ywFkhG7P3IfPRyPScEZE%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">IDLE中打印Hello World!</p>
</div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">当然,用于Python的编译IDLE还有<span style="color: black;">非常多</span>,<span style="color: black;">选取</span>一个适合自己的是非常重要的,初学的我当然<span style="color: black;">能够</span>只<span style="color: black;">运用</span>自带的IDLE,<span style="color: black;">不外</span>我可不想<span style="color: black;">这般</span>,我要找一款适合我的IDLE。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">我是嫩白菜,一个纯小白的白菜,新的世界很神奇,<span style="color: black;">期盼</span>我能在<span style="color: black;">这儿</span>学到<span style="color: black;">有些</span>东西,不虚度光阴。</p>
楼主听话,多发外链好处多,快到碗里来!外链论坛 http://www.fok120.com/ 感谢楼主分享,祝愿外链论坛越办越好! 这夸赞甜到心里,让我感觉温暖无比。 谷歌外贸网站优化技术。 认真阅读了楼主的帖子,非常有益。
页:
[1]