python学习第1天-隐藏的彩蛋

之前一直纠结到到底要学习什么脚本语言好(perl,ruby,python),直到看了《简明python教程》(学习网址:http://sebug.net/paper/python/)然后照着上面的代码理解后敲了一遍,感觉python语言真的是相当的艺术,相当的优雅。所以,就准备找本书好好的学习下语言。也看了不少大牛推荐的书单,自己最后选择的学习python的路线:

1. 《python 学习手册 第四版》  涵盖  3.x   和   2.x      核心语言学习

2. 使用python编写一个网络爬虫(第一个小项目)

3.《python 编程》  学习完语言,不能把他用到实际的应用中跟没学有什么区别

4. python编程这本书本身就有很多示例代码,很多项目可以做,所以这一步的学习中,我会做两件事情:

第一,示例代码学习记录    第二,画个简单的架构图   第三,根据架构图自己重写一遍代码    第四,写一个开发文档,记录自己的开发过程


学习环境:

python    3.4.3      64位

python 自带的ide—— idle   64位

这个比较简单,很适合初学者,还有简单的调试器可以使用


ps:

如果喜欢在linux上开发,那么编辑器也可以使用vim,功能也很强大


后期开发:

学习ipython编译环境,熟悉  python框架   django ,因为django本来就是用python写的,如果有时间,希望好好学习下django的源码。


今天来说下:python的第一个故事之隐藏的彩蛋,感觉很有意思:

出自  《python学习手册》 p 21    在任意的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!


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值