jubincn

导航

2013年2月19日 #

6.00 Introduction to Computer Science and Programming Lec 8: Efficiency and Order of Growth

摘要: 这个lec主要将复杂度的内容,这部分内容没有什么好总结的,不过里面那段Python代码比较有意思,就贴在这里吧import pylab, math def showGrowth(lower, upper): log = [] linear = [] quadratic = [] logLinear = [] exponential = [] for n in range(lower, upper+1): log.append(math.log(n, 2)) linear.append(n) log... 阅读全文

posted @ 2013-02-19 22:16 jubincn 阅读(201) 评论(0) 推荐(0)

python error: no module named pylab的解决

摘要: 参考:http://stackoverflow.com/questions/10965336/python-error-no-module-named-pylabOS:Ubuntu 12.10Python版本:2.7.3在命令行中输入:sudo apt-get install python-numpy python-scipy python-matplotlib即可搞定 阅读全文

posted @ 2013-02-19 00:08 jubincn 阅读(2234) 评论(0) 推荐(0)