代码改变世界

随笔分类 -  Python

用 python 实现一个多线程网页下载器

2016-03-06 19:31 by GarfieldEr007, 373 阅读, 收藏,
摘要: 今天上来分享一下昨天实现的一个多线程网页下载器。 这是一个有着真实需求的实现,我的用途是拿它来通过 HTTP 方式向服务器提交游戏数据。把它放上来也是想大家帮忙挑刺,找找 bug,让它工作得更好。 keywords:python,http,multi-threads,thread,threading 阅读全文

简明 Python 编程规范

2016-03-06 19:16 by GarfieldEr007, 349 阅读, 收藏,
摘要: 赖勇浩(http://laiyonghao.com) 注:之前发布一篇《简明 Python 编程规范》(见:http://blog.csdn.net/lanphaday/article/details/2834883),本是我给当时所在的公司制定的,发表到博客的时候,对齐等问题都有一些错误,还包括一 阅读全文

Python 字符串方法详解

2016-03-06 19:13 by GarfieldEr007, 350 阅读, 收藏,
摘要: Python 字符串方法详解 本文最初发表于赖勇浩(恋花蝶)的博客(http://blog.csdn.net/lanphaday),如蒙转载,敬请保留全文完整,切勿去除本声明和作者信息。 在编程中,几乎90% 以上的代码都是关于整数或字符串操作,所以与整数一样,Python 的字符串实现也使用了许多 阅读全文

理解Python命名机制

2016-03-06 19:11 by GarfieldEr007, 244 阅读, 收藏,
摘要: 理解Python命名机制 本文最初发表于恋花蝶的博客(http://blog.csdn.net/lanphaday),欢迎转载,但必须保留此声明且不得用于商业目的。谢谢。 引子 我热情地邀请大家猜测下面这段程序的输出: class A(object): def __init__(self): sel 阅读全文

快速入门:十分钟学会PythonTutorial - Learn Python in 10 minutes

2016-03-04 21:18 by GarfieldEr007, 377 阅读, 收藏,
摘要: This tutorial is available as a short ebook. The e-book features extra content from follow-up posts on various Python best practices, all in a conveni 阅读全文

Coursera课程python中的一些程序

2016-01-28 10:38 by GarfieldEr007, 499 阅读, 收藏,
摘要: Index of /code Name Last modified Size Description Parent Directory - BeautifulSoup.py 07-Aug-2015 12:39 78K aa_readme.txt 22-Dec-2015 14:18 156 argfi 阅读全文

Coursera课程《Python数据结构》中课件

2016-01-27 21:40 by GarfieldEr007, 720 阅读, 收藏,
摘要: You can access the Google Drive containing all of the current and in-progress lecture slides for this course through the link below. Lecture Slides Yo 阅读全文

Coursera课程《Python数据结构》中课程目录

2016-01-27 21:37 by GarfieldEr007, 813 阅读, 收藏,
摘要: Python Data Structures Python Data Structures is the second course in the specialization Python for Everybody. It covers Chapters 6-10 of the textbook 阅读全文

Coursera课程《大家的编程》(Python入门)中课程目录

2016-01-27 21:35 by GarfieldEr007, 1028 阅读, 收藏,
摘要: Getting Started with Python Getting Started with Python is the first course in the specialization Python for Everybody. It covers Chapters 1-5 of the 阅读全文

Python for everyone chapter 1

2016-01-27 20:52 by GarfieldEr007, 5023 阅读, 收藏,
摘要: Chapter 1 10 试题 1. When Python is running in the interactive mode and displaying the chevron prompt (>>>) - what question is Python asking you? What i 阅读全文

Coursera课程《大家的python》(Python for everyone)课件

2016-01-27 20:24 by GarfieldEr007, 3822 阅读, 收藏,
摘要: You can access the Google Drive containing all of the current and in-progress lecture slides for this course through the link below. Lecture Slides Yo 阅读全文

Coursera课程《大家的Python》中一些资料

2016-01-27 20:11 by GarfieldEr007, 409 阅读, 收藏,
摘要: Printed copies of Python for Informatics are available for $10 or less from Amazon and $2 or less on Kindle: English: Amazon / Kindle Spanish: Amazon  阅读全文