1.下载python安装包
在官网
但是下载过程非常曲折,各种中断。
于是选择下载anaconda。anaconda本身就自带了Python的解释器而且还自带了很多实用性工具。推荐清华源的下载地址:
2.安装
选择为所用用户安装或只是为自己安装。(直接下一步过去就行)
选择安装路径
这里建议将第一个勾选(将Anaconda添加到环境变量中,不勾选的话后期要自己添加到环境变量)
开始安装
安装完成
3.测试安装
使用Win+R组合键,输入cmd打开命令提示符窗口,再输入python进入交互式终端。
4.彩蛋:《Python之禅》
The Zen of Python, by Tim Peters
《Python之禅》 Tim Peters
Beautiful is better than ugly.
优美胜于丑陋
Explicit is better than implicit.
明了胜于隐晦
Simple is better than complex.
简洁胜于复杂
Complex is better than complicated.
复杂胜于混乱
Flat is better than nested.
扁平胜于嵌套
Sparse is better than dense.
宽松胜于紧凑
Readability counts.
可读性很重要
Special cases aren't special enough to break the rules.
即便是特例,也不可违背这些规则
Although practicality beats purity.
虽然现实往往不那么完美
Errors should never pass silently.
但也不应该放过任何异常
Unless explicitly silenced.
除非你确定需要如此
In the face of ambiguity, refuse the temptation to guess.
如果存在多种可能性,不要猜测
There should be one-- and preferably only one --obvious way to do it.
肯定有一种--通常也是唯一一种--最佳的解决方案
Although that way may not be obvious at first unless you're Dutch.
虽然这并不容易,因为你不是Python之父
Now is better than never.
动手比不动手要好
Although never is often better than *right* now.
但不假思索就动手还不如不做
If the implementation is hard to explain, it's a bad idea.
如果你的方案很难懂,那肯定不是一个好方案
If the implementation is easy to explain, it may be a good idea.
如果你的方案很好懂,那肯定是一个好方案
Namespaces are one honking great idea -- let's do more of those!
命名空间非常有用,我们应该多加利用
喜欢本文的朋友,欢迎关注公众号 栗子程序员,收看更多精彩内容