摘要: 核函数估计Demo Iimport sys,re,osimport numpy as npfrom scipy import stats import matplotlib.pylab as plt if __name__ == '__main__': # random data gra... 阅读全文
posted @ 2014-10-22 21:23 林中细雨 阅读(715) 评论(0) 推荐(0) 编辑
摘要: tabby_cat = "\tI'm tabbed in."persian_cat = "I'm split\non a line."backslash_cat = "I'm \\ a \\ cat."fat_cat = """I'll do a list:\t* Cat food\t* Fishi... 阅读全文
posted @ 2014-10-22 14:55 林中细雨 阅读(154) 评论(0) 推荐(0) 编辑
摘要: # Here's some new strange stuff, remember type it exactly.days = "Mon Tue Wed Thu Fri Sat Sun"months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"print "... 阅读全文
posted @ 2014-10-22 14:23 林中细雨 阅读(170) 评论(0) 推荐(0) 编辑
摘要: formatter = "%r %r %r %r"print formatter % (1, 2, 3, 4)print formatter % ("one", "two", "three", "four")print formatter % (True, False, False, True)pr... 阅读全文
posted @ 2014-10-22 14:19 林中细雨 阅读(147) 评论(0) 推荐(0) 编辑
摘要: print "Mary had a little lamb."print "Its fleece was white as %s." % 'snow'print "And everywhere that Mary went."print "." * 10 # what'd that do?end1 ... 阅读全文
posted @ 2014-10-22 14:05 林中细雨 阅读(138) 评论(0) 推荐(0) 编辑
摘要: x = "There are %d types of people." % 10binary = "binary"do_not = "don't"y = "Those who know %s and those who %s." % (binary, do_not)print xprint ypri... 阅读全文
posted @ 2014-10-22 14:02 林中细雨 阅读(140) 评论(0) 推荐(0) 编辑