码迷,mamicode.com
首页 > 编程语言 > 详细

接触Python的第一天

时间:2017-08-19 00:47:33      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:实用   idea   变量   团队   ··   ext3   参考   配置   nbsp   

接触Python的第一天

一个人学,总会比团队学习要付出的时间更多,但是总有一段路,是需要自己走的。

1.Python的优点

视频上面的老师总结出来的优点:高级语言、面向对象、可拓展、可移植、语法清晰、易维护、高效的原型。

>>>import this

 

The Zen of Python, by 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.
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!

//

Tim Peters的“禅宗”

美丽比丑陋要好。
直接比含蓄要好。
简单比繁复要好。
繁复比复杂要好。
平铺比嵌套要好。
稀疏比密集要好好。
可读性很重要。
特例不能破坏规则。
实用性比正确更重要。
错误永远不能安静的通过。
除非明确地让他安静。
拒绝在模糊的地方猜测。
应该有一个 - 最好只有一个 - 显而易见的办法。
尽管开始时这种方法不明显,除非您是荷兰人。
现在比永远不更好
虽然永远不常常比现在更好。
如果实施难以解释,这是一个坏主意。
如果实现很容易解释,可能是个好主意。
命名空间是一个很好的主意 - 让我们做得更多!

 

//

2.Python能做些什么事

· 科学计算

· 图形化开发

· 系统脚本

· web服务器

· 网络爬虫

· 服务器集群自动化运维

//每学习一种内容,记得要独立总结并带上链接。

3.在Windows10下的开发环境与搭建

由于我不是大神,所以请小伙伴放弃打算参考我学习经历的想法,一定要按照网络上面的大神,或者视频老师的搭建方法做。

(1)首先请到 python 官网下载目前正在学习的python版本——https://www.python.org/getit/

(2)安装完毕后开始配置环境变量

我的电脑->属性->高级系统设置->高级->环境变量

Path最后面添加你的python安装目录,还有Scripts文件夹,比如我的是C:\Python27;C:\Python27\Scripts 

配置完毕后,打开cmd,运行python

技术分享

(3)万年不变的第一个hello world

直接在上面输入print("hello world");

技术分享

(4)Python IDE的使用

我使用的是sublime text3 ,为什么呢,因为好看啊·············hhh 2333。

技术分享

是不是挺好看的,233333 。

想要就自己下载吧,另外关于Sublime text 3的python IDE搭建的话, 另外一篇文章会总结出来。

 

接触Python的第一天

标签:实用   idea   变量   团队   ··   ext3   参考   配置   nbsp   

原文地址:http://www.cnblogs.com/lujunsheng2017/p/7392655.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!