b1gc8v 发表于 2024-8-17 17:33:54

天秀!“手机”居然亦能够写Python代码?还支持各样库?


    <h1 style="color: black; text-align: left; margin-bottom: 10px;">前言</h1>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/7fd687b968bf4f71af4f124a0e3a15e3~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=sorbDJhjZruIhtFXyg51RN%2Fq6CQ%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">不得不说,<span style="color: black;">针对</span>写代码这件事,真的<span style="color: black;">必要</span><span style="color: black;">便是</span>在电脑上才会有很好的体验。手机上写Python代码,那种感觉确实不敢想。</span></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/b6645a201757401bb5bc98a4c51b9ee3~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=eor8t%2BQiwZQEDAE9TjbzMTZ8ncI%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">然则</span>总有<span style="color: black;">伴侣</span>说:</span></span></p><span style="color: black;"><strong style="color: blue;"><span style="color: black;">有<span style="color: black;">无</span>手机端写Python代码的软件呢?</span></strong></span><span style="color: black;"><strong style="color: blue;"><span style="color: black;">上、下班坐<span style="color: black;">轻轨</span>,坐公交挺无聊,想要练练代码。</span></strong></span>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">鉴于此,我还是写一篇<span style="color: black;">文案</span>给<span style="color: black;">大众</span>唠嗑这款软件(QPython)。</span></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/f02b07426b064813a0f8c93b332ec5e2~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=eIaf%2Fy8AeXfDR0Gxn8ZQk7H%2Bw8I%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">安装</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">安装很简单,下载后和普通软件<span style="color: black;">同样</span>安装,如图正在下载中。</span></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/b53ee6aa95084777a33bb1bd64f2cfe7~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=UJCGZIOaIaxXAECD2hWwIUolZW0%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">下载完成后,会提示你是写Python2代码,还是Python3代码。</span></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/79e4efc6e18547c0a058e63feaeb5bcd~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=MWgojOjy9v9AjDIb4%2F7J2Rc7svo%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">怎样</span><span style="color: black;">运用</span>呢?</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">在介绍该软件之前,<span style="color: black;">咱们</span>先来<span style="color: black;">瞧瞧</span>软件的主界面。这上面有几个常用的菜单,我简单给<span style="color: black;">大众</span>介绍一下。</span></span></p><span style="color: black;"><strong style="color: blue;"><span style="color: black;">终端:</span></strong><span style="color: black;">类似于电脑上的cmd窗口,打开后<span style="color: black;">能够</span>直接输入Python代码;</span></span><span style="color: black;"><strong style="color: blue;"><span style="color: black;">编辑器:</span></strong><span style="color: black;"><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>成“.py”文件,供<span style="color: black;">咱们</span>后续调用;</span></span><span style="color: black;"><strong style="color: blue;"><span style="color: black;">文件:</span></strong><span style="color: black;"><span style="color: black;">咱们</span><span style="color: black;">能够</span>从<span style="color: black;">这儿</span>读取自己写的Python脚本文件,<span style="color: black;">或</span>读取别人写好的;</span></span><span style="color: black;"><strong style="color: blue;"><span style="color: black;">二维码:</span></strong><span style="color: black;"><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></span>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/pgc-image/fe4dffbe723a46e0b761de0ee6689cc0~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=VPOBFhg7mU%2B1MtTRk%2BFvlyefrGg%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">下面<span style="color: black;">咱们</span>针对每一个菜单,给<span style="color: black;">大众</span>做一个演示。</span></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/70d92a48e848441da08c79d893833005~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=vpfoep2HoSIMAFHusxeRGPdLOj4%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">终端</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">单击</span><strong style="color: blue;"><span style="color: black;">“终端”</span></strong><span style="color: black;">,就会<span style="color: black;">显现</span>如下界面。从下图<span style="color: black;">咱们</span><span style="color: black;">能够</span>看到Python的版本为3.6.6,接着<span style="color: black;">咱们</span>还写了一个列表拼接的代码。</span></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/eff600560c8a484bbf0846da7b5319f3~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=IKJzsojeBI6cgclz%2BI3dYH77c8U%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">编辑器</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">点击</span><strong style="color: blue;"><span style="color: black;">“编辑器”</span></strong><span style="color: black;">,<span style="color: black;">咱们</span>就<span style="color: black;">能够</span>在这个界面输入<span style="color: black;">咱们</span>的Python脚本了,如下<span style="color: black;">咱们</span>写了一个简单的Python脚本,记得编写完成后,点击那个</span><strong style="color: blue;"><span style="color: black;">“<span style="color: black;">保留</span>按钮”</span></strong><span style="color: black;">。</span></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/cd3958e5ca7244008e60e6eb8b135ab8~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=K49oH3KanNX7otjfudUd1tD1B%2BY%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">点击<span style="color: black;">保留</span>后,会提示<span style="color: black;">咱们</span>给这个Python脚本文件命名,<span style="color: black;">这儿</span>我取名为</span><strong style="color: blue;"><span style="color: black;">“name.py”</span></strong><span style="color: black;">。</span></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/46d18ac6611d4ab28bcd5fbeb2ab7bd2~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=pNbJtRqedCXQ%2FoJ31JyKvwf6Z7w%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">再次点击<span style="color: black;">保留</span>后,直接点击运行</span><strong style="color: blue;"><span style="color: black;">(下方菜单栏找)</span></strong><span style="color: black;">,就<span style="color: black;">能够</span>直接<span style="color: black;">转</span>到终端运行。</span></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/d83d5dfb49d340cc986a6eee51216561~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=eyonknsEF%2Bli2eHwnPmkSc%2FEnOg%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">文件</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">毕竟是一款手机端Python编辑器,</span><strong style="color: blue;"><span style="color: black;">文件肯定是和Python环境都在同一个文件目录下</span></strong><span style="color: black;">,<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></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/d7ae1f46bf6e48d89d9495fa67d69df5~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=cpVwOwBN2rpIf0HV9oIvOOI6t7s%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">从上图<span style="color: black;">能够</span>看出:</span><span style="color: black;"><span style="color: black;">咱们</span>之前<span style="color: black;">保留</span>的“name.py”脚本文件,就明明白白的放在<span style="color: black;">这儿</span>。</span></span></p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">QPYPI</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">关于二维码那个菜单,我<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><span style="color: black;">怎么安装第三方扩展库呢</span><span style="color: black;">?</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">点击</span><strong style="color: blue;"><span style="color: black;">“QPYPI”</span></strong><span style="color: black;">,再点击</span><strong style="color: blue;"><span style="color: black;">“AIPY”</span></strong><span style="color: black;">,<span style="color: black;">能够</span>看到下方有<span style="color: black;">非常多</span>经常使用的库,<span style="color: black;">必须</span>什么库,<span style="color: black;">咱们</span>就下载哪一个。</span></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/a85f7123b1664adb932ed2ae78481ab1~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=1g3iwmNHYEsOS3N0WW5DUoJJ7pU%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">下图为</span><strong style="color: blue;"><span style="color: black;">pandas库</span></strong><span style="color: black;">正在下载中。</span></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p9-sign.toutiaoimg.com/pgc-image/d10a6c6df2ce4fafa5ca6a9a955007cc~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723893927&amp;x-signature=cnQYnQ4QUCC09d1yeSobTJOc3s8%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">接着<span style="color: black;">大众</span>就<span style="color: black;">能够</span>去终端玩一玩这个库吧!</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">作者:Python<span style="color: black;">兴趣</span>者社区</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">原文链接:</p>https://mp.weixin.qq.com/s/fiR6JmQdHL4t3yTzBrElHQ





nykek5i 发表于 2024-11-6 10:03:39

谷歌外贸网站优化技术。
页: [1]
查看完整版本: 天秀!“手机”居然亦能够写Python代码?还支持各样库?