- 博客(6)
- 收藏
- 关注
转载 从0开始学python:字典dictionary
Python的字典的items(), keys(), values()都返回一个list[python] view plaincopy>>> dict = { 1 : 2, 'a' : 'b', 'hello' : 'world' } >>> dict.values() ['b', 2, 'world'] >>> dict.
2013-08-09 10:47:56 460
转载 从0开始学python:urllib和urllib2的区别
作为一个Python菜鸟,之前一直懵懂于urllib和urllib2,以为2是1的升级版。今天看到老外写的一篇《Python: difference between urllib and urllib2》才明白其中的区别。 You might be intrigued by the existence of two separate URL modules in Pyt
2013-08-09 10:40:45 463
原创 从0开始学python:打开编辑文件
Python的open方法用来打开一个文件。第一个参数是文件的位置和文件名,第二个参数是读写模式;f=open('test.txt','w')读写模式的类型有:以读方式打开, 同时提供通用换行符支持w 以写方式打开,a 以追加模式打开 (从 EOF 开始, 必要时创建新文件)r+ 以读写模式打开w+ 以读写模式打开 (参见 w )
2013-08-09 10:36:27 681
转载 how to be pythonic
Short Ways to Manipulate ListsList comprehensions provide a powerful, concise way to work with lists. Also, the map and filterfunctions can perform operations on lists using a different concise
2013-07-15 10:43:02 388
转载 git基本操作
Git --- The stupid content tracker, 傻瓜内容跟踪器。那么怎么理解呢?git首先是一个版本控制工具,这点和常用CVS, Subversion是一样的,而不同的是,他采用分布式版本控制库的方式管理。Git的速度非常快,可以很轻易创建分支,并且非常适合用于大项目,它有着非常出色的代码合并追踪能力,再同时它有很多小工具帮它管理版本库。在此本文不试图去深入讨论理解git的
2013-07-15 09:07:06 386
原创 记录学习前端开发的资源
http://www.w3cplus.com/blogs/list.html藤藤每日一练http://www.w3cplus.com/solution/index/index.htmlcss解决方案http://demo.doyoe.com/web前段实验室
2013-07-05 14:46:00 282
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人