Python,作为一种简洁易懂的编程语言,近年来在全球范围内受到了广泛的关注和追捧。它不仅语法简单明了,易于上手,而且拥有强大的第三方库和广泛的应用领域。从数据分析、机器学习到Web开发,Python都能发挥出色的性能,成为众多开发者的首选语言。
那么作为一个python的初学者,就让我带着大家开始这跌跌撞撞但是又充满着奇思妙想的python之旅吧
配置环境
官网 : https://www.python.org/downloads/
进入官网可以选择自己想要下载的版本,如果你看的资料比较新,那么一般都是3.x,老一些的python是2.x,要按需选择,因为python大版本之间没有兼容
这里我们选择的3.12,下载好双击exe,安装完成以后,环境就可以了
验证一下
windows+r cmd
python -V
如下就安装好了
安装IDE
市面上ide还是很多的
PyCharm
适合语言:Python
特点:智能代码辅助,专为Python设计。
Visual Studio Code
有时会与 Visual Studio IDE 混淆,后者并非 Python 使用者常用的工具。VS Code 是完整的代码编辑器,具备很多优秀功能,许多程序员称其为最好的 IDE 编辑器。
Sublime Text 被认为是最好的 Python 编辑器,因为它简单、通用、方便。它使用广泛,可用于不同的平台。
兼容性:Windows、Linux、Mac OS
主要插件和功能:
简易导航,实现高性能
支持不同包,以自定义编辑器
只需一个关键词,即可复制常见代码段
即时项目切换和分割编辑
最终选择
这里我们选择了pycharm,因为之前是java出身,非常喜欢Idea,那么就同样选择功能非常强大的pycharm来辅助我们快速学习吧
直接上官网 : https://www.jetbrains.com/pycharm/download/?section=windows
如下,上面是专业版,需要破解,下面是社区版功能少一些,自己看需要选择
因为感觉自己是比较专业的小白,所以选择了专业版,感觉这个专业版应该比较好解决验证码
这里我选择其他版本,最新版本不容易找验证码
https://www.jetbrains.com/pycharm/download/other.html
果然,下载好安装完成后找个一个验证码,可以用
UX394X3HLT-eyJsaWNlbnNlSWQiOiJVWDM5NFgzSExUIiwibGljZW5zZWVOYW1lIjoiSG9uZ2lrIFVuaXZlcnNpdHntmY3snbXrjIDtlZnqtZAiLCJsaWNlbnNlZVR5cGUiOiJDTEFTU1JPT00iLCJhc3NpZ25lZU5hbWUiOiLkvJfliJvkupEg5b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