前言:
本系列教程面向有一定编程基础的人,熟悉IDE的操作,有面向对象的基础更佳。
简介:
Python是著名的“龟叔”Guido van Rossum在1989年圣诞节期间,为了打发无聊的圣诞节而编写的一个编程语言。龟叔给Python的定位是“优雅”、“明确”、“简单”,所以Python程序看上去总是简单易懂,初学者学Python,不但入门容易,而且将来深入下去,可以编写那些非常非常复杂的程序。总的来说,Python的哲学就是极简既极美。
应用场景:
- 网络应用(网站,后台服务)
- 小工具(爬虫)
缺点:
- 运行速度非常慢,因为Python是解释型语言,就是你的代码在运行的时候会一行一行的翻译成机器码,与C相比,这个效率要慢许多。(不过无伤大雅,用户基本无感)
- 代码不能加密,发布你的Python的程序的时候,实际上就是在公布你的源码。
安装:
- 下载地址
- 下载完成之后,双击打开,这里需要注意一点:
- 打开命令行窗口,输入python,结果如下所示:
Pycharm下编写第一个HelloWorld
- Pycharm下载
-
破解
EB101IWSWD-eyJsaWNlbnNlSWQiOiJFQjEwMUlXU1dEIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMTgtMTAtMTQifSx7ImNvZGUiOiJSUzAiLCJwYWlkVXBUbyI6IjIwMTgtMTAtMTQifSx7ImNvZGUiOiJXUyIsInBhaWRVcFRvIjoiMjAxOC0xMC0xNCJ9LHsiY29kZSI6IlJEIiwicGFpZFVwVG8iOiIyMDE4LTEwLTE0In0seyJjb2RlIjoiUkMiLCJwYWlkVXBUbyI6IjIwMTgtMTAtMTQifSx7ImNvZGUiOiJEQyIsInBhaWRVcFRvIjoiMjAxOC0xMC0xNCJ9LHsiY29kZSI6IkRCIiwicGFpZFVwVG8iOiIyMDE4LTEwL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2gsx5LcIf5kYNsqJ0GavXTVyWh7PYiKX4bs354ZQLUwwa/cG 2 wNWP HtBhVxMRNTdVhSm38AknZlD PTAsWGu9GyLmhti2EnVwGybSD2Dxmhxk3IPCkhKAK pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lRJnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==
- 修改hosts文件 将 0.0.0.0 account.jetbrains.com 添加到hosts文件最后,注意hosts文件无后缀,如果遇到无法修改或权限问题,可以采用覆盖的方法去替换hosts文件 修改后请检查hosts文件是否修改,激活码无法激活的原因99.99%是因为hosts没有修改正确 Windows系统hosts文件路径为:c:windowssystem32driversetc
- 复制激活码 打开PyCharm选择Activation code激活,然后复制下面的激活码点击激活。
- 开始编写 打开Pycharm,点击 Create new project 新建一个HelloWorld的项目
目录结构如下(关于venv虚拟环境会在后面单独讲解)
新建文件
文件内容
启动项目,展示成果
HelloWorld至此就大功告成了~
下节预告:
下节我们来一起学习Python的基础语法~