摘要: 原生的matplotlib并不支持直接使用中文,而需要修改一下相应的文件,上网搜了下,找到一个最简洁的办法。 NO.1 找到matplotlibrc文件 C:\Python26\Lib\site-packages\matplotlib\mpl-data\matplotlibrc(Windows) /usr/share/matplotlib/mpl-data/matplotlibrc (Linux) NO.2 找到以下两项,去掉# font.family : sans-serif font.sans-serif : Microsoft YaHei , Bitstream Vera San... 阅读全文
posted @ 2011-06-22 15:01 牛皮糖NewPtone 阅读(1398) 评论(0) 推荐(0) 编辑
摘要: 17. Inheritance 继承 17.1. Inheritance The language feature most often associated with object-oriented programming is inheritance. Inheritance is the ability to define a new class that is a modified ver... 阅读全文
posted @ 2011-06-20 22:25 牛皮糖NewPtone 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 昨天京东图书半价真是太给力了,我也忍不住去买了好多CS的影印版书籍,之前都在图书馆看过中文版的,觉得写得很好,可惜图书馆基本上有翻译版的就没有进英文版,而翻译的大多都是这些译者的研究生,看得真的是不爽,好好的经典就这么给毁了。于是一直纠结着想买原版的看看,穷学生一个,又嫌书太贵了,只看在网上看看扫描版的。昨日中午习惯性地登京东一看,哇塞,100减50,真是High,比起当当的返券和一直不吭声的卓... 阅读全文
posted @ 2011-06-19 17:03 牛皮糖NewPtone 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 今天翻起一本10年8月的ACM通信,突然发现有个红字Obituary,一看居然是Carl Adam Petri去世了。作为一个研究形式化技术的学生,感觉到一丝伤痛。 2010年7月2日,著名德国数学家、计算机科学家Carl Adam Petri与世长辞,享年83岁。他在计算机科学方面的主要成就,是提出了用于描述和建模分布式并发系统的Petri网模型和以此模型为基础发展出来的网论(net theo... 阅读全文
posted @ 2011-06-17 21:12 牛皮糖NewPtone 阅读(1269) 评论(4) 推荐(0) 编辑
摘要: 1. The way of the program 编程的方式(我更喜欢译作编程之路) The goal of this book is to teach you to think like a computer scientist. This way of thinking combines some of the best features of mathematics, engineerin... 阅读全文
posted @ 2011-06-16 16:14 牛皮糖NewPtone 阅读(1620) 评论(0) 推荐(0) 编辑
摘要: 书等了5天才收到,随手翻开马上被里面的插图吸引了,真是可爱啊… 而且把单词按各种专题来分类记忆,马上开始背~~~ mp3的下载地址在作者的Blog上找到了 地址是 www.lixiaolai.com 阅读全文
posted @ 2011-06-14 16:08 牛皮糖NewPtone 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 14. Classes and functions 类和函数 14.1. Time 时间 As another example of a user-defined type, we’ll define a class called Time that records the time of day. The class definition looks like this:class Time: ... 阅读全文
posted @ 2011-06-14 15:36 牛皮糖NewPtone 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 15. Classes and methods 类和方法 15.1. Object-oriented features 面对对象特性 Python is an object-oriented programming language(面向对象编程语言), which means that it provides features that support object-oriented progr... 阅读全文
posted @ 2011-06-14 13:45 牛皮糖NewPtone 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 13. Classes and objects 类和对象(前面的暂时跳过,第一版的时候已经学过了,感觉变化不大,继续学我那纠结的OOP) 13.1. Object-oriented programming 面向对象编程 Python is an object-oriented programming language, which means that it provides features t... 阅读全文
posted @ 2011-06-13 16:50 牛皮糖NewPtone 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 这本书我曾经有过两本,第一本还是十一新华书店8折的时候顺手买的,之前我从来不关心什么名人传记。在带着这本书来学校的火车上,我不幸地将它塞在了枕头底下,仅看了第一章,就永远的失去了… 第二本是echo买来送给我的,说弥补我的遗憾,五一的时候,我一个人无聊,躺在床上,一口气从晚上看到了dawn,5点半的时候,我把整本书读完了,期间关灯躺下一次,觉得这么精彩的自传不一口气看完怎么能睡得着呀,起来接着继续… 引用一个豆油的评论: 在导师的这种力量的支持下,我开始了疯狂的科研工作。我每天上午9点起床,到学校完成自己必须做的课业、助教等工作,中午回家,从中午1点工作到凌晨2点,一星期有6天都是如此,只.. 阅读全文
posted @ 2011-06-12 21:11 牛皮糖NewPtone 阅读(755) 评论(0) 推荐(0) 编辑