f9yx0du 发表于 2024-8-17 21:33:00

Python的3大重点用途


    <div style="color: black; text-align: left; margin-bottom: 10px;">
      <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/1531737535921d84373c5c5~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723895887&amp;x-signature=6cNPqGbOLWQndm1b6A5Y7U7i9tI%3D" style="width: 50%; margin-bottom: 20px;"></div>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">01 Web<span style="color: black;">研发</span></strong></p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Django和Flask等基于Python的Web框架<span style="color: black;">近期</span>在Web<span style="color: black;">研发</span>中非常流行。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这些Web框架<span style="color: black;">能够</span><span style="color: black;">帮忙</span>你用Python编写服务器端代码(后端代码)。这是在你的额服务器上运行的代码,而不是运行在用户设备和浏览器的代码(前端代码)。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">1. <span style="color: black;">为何</span><span style="color: black;">必须</span>Web框架</strong></p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">由于</span>用Web框架<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>的URL映射到Python代码块,处理数据库以及生成用户在浏览器中看到的HTML文件。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">2. 应该<span style="color: black;">运用</span>哪种Python Web框架</strong></p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Django和Flask是最流行的两种Python Web框架。<span style="color: black;">倘若</span>你<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;"><strong style="color: blue;">3. Django和Flask有什么区别</strong></p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Gareth Dwyer 关于这个问题有一篇出色的<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>区别</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Flask:能够实现简单、灵活和细致的<span style="color: black;">掌控</span>。并能让你自己决定实现方式。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Django:<span style="color: black;">供给</span>了全面的体验:你<span style="color: black;">能够</span><span style="color: black;">得到</span>管理面板、数据库接口、ORM(对象关系映射)以及开箱即用的应用程序和项目的目录结构。</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></p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Flask:<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>数据库以及<span style="color: black;">怎样</span>与其进行交互。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Django:<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>有单一实现的方式。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">换句话说,<span style="color: black;">倘若</span>你是初学者,Flask可能是更好的<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>的定制,那就选Flask。</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>Jonathan T Ho的说法,<span style="color: black;">因为</span>Flask 的灵活性,在创建REST API时,Flask 比Django 更适合。</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>东西,Django可能会让你更快实现。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">02 数据科学</strong></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>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">1. <span style="color: black;">设备</span>学习是什么 </strong></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>内容的程序。给出图1,你<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/153173753595372c08eb8b3~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723895887&amp;x-signature=Wfw6P2RB6V%2BNgfpGoJyJGolKRcc%3D" style="width: 50%; margin-bottom: 20px;"></div>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">▲图1</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">给出图2,<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/1531737535959a3c2b635fc~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723895887&amp;x-signature=F0%2FEjUPOth6Ph7rIO9%2Fzeva5oiM%3D" style="width: 50%; margin-bottom: 20px;"></div>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">▲图2</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><span style="color: black;">照片</span>中有<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;">或</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>桌子。</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>用了。<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>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">这儿</span>就<span style="color: black;">必须</span>用到<span style="color: black;">设备</span>学习了。</strong></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>实现算法,该算法能够自动检测输入中的模式。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">例如,你将1000张狗的<span style="color: black;">照片</span>和1000张桌子的<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>
      <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><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>告诉<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;">亦</span>是狗。而这是桌子,那个<span style="color: black;">亦</span>是桌子。“</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">设备</span>学习算法的方式大致相同。</strong></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>将相同的想法应用于:</p><strong style="color: blue;"><span style="color: black;">举荐</span>系统</strong>:<span style="color: black;">例如</span>YouTube,亚马逊和Netflix<strong style="color: blue;">人脸识别</strong><strong style="color: blue;">语音识别</strong>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">以及其他应用。</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>:</p><strong style="color: blue;">神经网络</strong><strong style="color: blue;">深度学习</strong><strong style="color: blue;">支持向量机</strong><strong style="color: blue;">随机森林</strong>
      <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>的<span style="color: black;">照片</span>标签问题。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">2. 将Python用于<span style="color: black;">设备</span>学习</strong></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框架。其中两个最热门的是scikit-learn和TensorFlow。</p>scikit-learn带有<span style="color: black;">有些</span>内置的热门<span style="color: black;">设备</span>学习算法。TensorFlow是一个低级库,能让你创建自定义<span style="color: black;">设备</span>学习算法。<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>你先从scikit-learn<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>TensorFlow。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">3. 数据分析和数据可视化</strong></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>工作。<span style="color: black;">做为</span>数据分析师,你会绘制<span style="color: black;">这般</span>的条形图。</p>
      <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p6-sign.toutiaoimg.com/pgc-image/1531737535889a406a7ec98~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723895887&amp;x-signature=eOolkREC%2Fx2chJVhD8kjHkKXIbg%3D" style="width: 50%; margin-bottom: 20px;"></div>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">▲条形图1 - 用Python生成</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">从这张图中<span style="color: black;">能够</span>看到在某个周日,男性用户购买了400多件<span style="color: black;">制品</span>,女性用户购买了350件<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>数据分析师,对此你会提出<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>。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">为了理解哪种解释是正确的,你<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/15317375359788b66b2816e~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723895887&amp;x-signature=6seQAApuNVyQTFydqcxA6Kp7jNQ%3D" style="width: 50%; margin-bottom: 20px;"></div>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">▲折线图1 - 用Python生成</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>看出,在<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>在男性中比在女性中更受欢迎。</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>的图表呢?</p>
      <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/15317375358974ea9a8cfb1~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723895887&amp;x-signature=FPANxU7xmodRw4IKqHZ%2FjHnAQ3Q%3D" style="width: 50%; margin-bottom: 20px;"></div>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">▲折线图2 - 用Python生成</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><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>许出于某种<span style="color: black;">原由</span>男性<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;">类似</span>,只是更<span style="color: black;">繁杂</span><span style="color: black;">有些</span>。在谷歌时我<span style="color: black;">运用</span>Python进行分析,而我在微软<span style="color: black;">运用</span>JavaScript。</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>SQL从数据库中提取数据。<span style="color: black;">而后</span>,我用Python和Matplotlib(在谷歌)或JavaScript和D3.js(在微软)来可视化和分析这些数据。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">4. <span style="color: black;">运用</span>Python进行数据分析/可视化</strong></p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">进行数据可视化时,Matplotlib是非常热门的库。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Matplotlib很棒,<span style="color: black;">由于</span>:</p>容易上手seaborn等库是基于它的,学习Matplotlib<span style="color: black;">能够</span><span style="color: black;">帮忙</span>你以后学习其他库。<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">5. <span style="color: black;">怎样</span>用Python学习数据分析/可视化</strong></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>知识。在学习了数据分析和可视化的<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://p26-sign.toutiaoimg.com/pgc-image/1531737536359a186cc6d87~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723895887&amp;x-signature=RpTjEOoPqtlvNHtzvutDniXlekQ%3D" style="width: 50%; margin-bottom: 20px;"></div>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">03 脚本</strong></p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">什么是脚本?</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">脚本<span style="color: black;">一般</span><span style="color: black;">指的是</span>编写能够自动执行简单任务的小程序。</strong></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>邮件发送给<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>关键字的邮件数量,以便分析<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><span style="color: black;">运用</span>了Ruby,但<span style="color: black;">针对</span>这类任务Python<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>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">04 其他用途</strong></p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">1. 嵌入式应用</strong></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>与Rasberry Pi<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;"><strong style="color: blue;">2. 游戏<span style="color: black;">研发</span></strong></p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">你<span style="color: black;">能够</span>用PyGame来<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>不要选它。</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>Unity的C#,这是最受欢迎的游戏引擎之一。它能让你为许多平台<span style="color: black;">研发</span>游戏,<span style="color: black;">包含</span>Mac、Windows、iOS和Android。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">3. 桌面应用</strong></p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">你<span style="color: black;">能够</span>用Python的Tkinter,但这并不是最热门的<span style="color: black;">选取</span>。Java,C#和C ++等语言似乎更受欢迎。</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><span style="color: black;">亦</span><span style="color: black;">起始</span><span style="color: black;">运用</span>JavaScript来<span style="color: black;">研发</span>桌面应用程序。例如,Slack的桌面应用是Electron构建的。它能让你用JavaScript构建桌面应用程序。</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><span style="color: black;">运用</span>JavaScript。它能让你重新<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><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/153173753626169702759bb~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723895887&amp;x-signature=4HfTWB9OfqBhAmcJ72wdHf6%2FusI%3D" style="width: 50%; margin-bottom: 20px;"></div>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">4. Python 3还是Python 2</strong></p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">我会<span style="color: black;">举荐</span>Python 3,<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;"><strong style="color: blue;">5. 后端代码与前端代码的区别</strong></p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">假设你想<span style="color: black;">研发</span>类似Instagram的<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;">你可能会用到:</p><strong style="color: blue;">面向iOS端的Swift </strong><strong style="color: blue;">面向Android的Java</strong><strong style="color: blue;">面向Web浏览器的JavaScript</strong>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">每组代码将在每种类型的设备上运行。这类代码将决定应用的布局样式,点击按键的样式等。</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>存储在用户的设备上,以便<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><span style="color: black;">必须</span>用到后端代码/服务器端代码。你<span style="color: black;">必须</span>编写后端代码来执行以下操作:</p>记录关注<span style="color: black;">状况</span>压缩照片,从而不占用太多存储空间在<span style="color: black;">发掘</span>功能中向<span style="color: black;">每一个</span>用户<span style="color: black;">举荐</span>照片和新帐户<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这是后端代码和前端代码之间的区别。</p>
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">顺便说一下,Python不是编写后端代码的<span style="color: black;">独一</span><span style="color: black;">选取</span>,还有基于JavaScript的Node.js等<span style="color: black;">选取</span>。</p>
    </div>




门前大桥下 发表于 2024-8-29 16:04:11

说得好啊!我在外链论坛打滚这么多年,所谓阅人无数,就算没有见过猪走路,也总明白猪肉是啥味道的。

wrjc1hod 发表于 2024-10-3 08:18:23

感谢你的精彩评论,带给我新的思考角度。

nqkk58 发表于 2024-10-27 12:04:53

回顾历史,我们感慨万千;放眼未来,我们信心百倍。
页: [1]
查看完整版本: Python的3大重点用途