Fork me on GitHub

  2013年8月8日
摘要: import osdirname="C:\\Users\\haier\\Desktop\\new"def walk(path): for item in os.listdir(path): subpath = os.path.join(path, item) #subpath=subpath.replace('\\','\\\\') print subpath for i in open(subpath): pass#print i ffrom=open(subpath,'r') f... 阅读全文
posted @ 2013-08-08 12:04 huashiyiqike 阅读(419) 评论(0) 推荐(0) 编辑
摘要: import cookielib, urllib, urllib2,time def visit(user,password): login=user password=password # Enable cookie support for urllib2 cookiejar = cookielib.CookieJar() urlOpener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookiejar)) url='http://www.renren.com/PLo... 阅读全文
posted @ 2013-08-08 12:01 huashiyiqike 阅读(278) 评论(0) 推荐(0) 编辑
摘要: file=open("a.html","w") file.writelines(data) 阅读全文
posted @ 2013-08-08 11:20 huashiyiqike 阅读(148) 评论(0) 推荐(0) 编辑
摘要: because of explaining away, the hidden weights in sigmoid belief network is no longer independent 阅读全文
posted @ 2013-08-08 09:54 huashiyiqike 阅读(430) 评论(0) 推荐(0) 编辑