摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
file=open("a.html","w") file.writelines(data) 阅读全文
摘要:
because of explaining away, the hidden weights in sigmoid belief network is no longer independent 阅读全文