上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 38 下一页
摘要: Session操作 阅读全文
posted @ 2017-05-03 17:55 Erick-LONG 阅读(2486) 评论(0) 推荐(0) 编辑
摘要: 1 """A very simple co-routine scheduler. 2 Note: this is written to favour simple code over performance. 3 """ 4 from types import coroutine 5 6 7 @coroutine 8 def switch(): 9 yield 10... 阅读全文
posted @ 2017-05-03 11:11 Erick-LONG 阅读(203) 评论(0) 推荐(0) 编辑
摘要: setting.py main.py items.py dbbook.py 阅读全文
posted @ 2017-04-20 17:26 Erick-LONG 阅读(260) 评论(0) 推荐(0) 编辑
摘要: ss = [['xx','m',22],['cc','w',33],['jj','w',44],['qq','m',11]] import pandas as pd df = pd.DataFrame(ss) df.columns=['name','gender','age'] phone = pd.Series([21000,18900,18000]) phone = pd.Series... 阅读全文
posted @ 2017-04-19 22:19 Erick-LONG 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 import requests 4 from bs4 import BeautifulSoup 5 import pandas 6 def gethousedetail(url): 7 info ={} 8 res = requests.get(url) 9 ... 阅读全文
posted @ 2017-04-19 21:46 Erick-LONG 阅读(1029) 评论(0) 推荐(0) 编辑
摘要: 1 speech_text='xxx' 2 speech = speech_text.lower().split() 3 dic = {} 4 for word in speech: 5 if word not in dic: 6 dic[word]=1 7 else: 8 dic[word]+=1 9 import operat... 阅读全文
posted @ 2017-04-19 21:21 Erick-LONG 阅读(550) 评论(0) 推荐(0) 编辑
摘要: import string path = 'waldnn' with open(path,'r') as text: words = [raw_word.strip(string.punctuation).lower() for raw_word in text.read().split()] words_index = set(words) counts_dict = ... 阅读全文
posted @ 2017-04-19 13:56 Erick-LONG 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 import requests 2 import json 3 import time 4 url = 'http://weibo.com/aj/message/add?ajwvr=6' 5 headers = { 6 'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, ... 阅读全文
posted @ 2017-04-19 13:52 Erick-LONG 阅读(2413) 评论(0) 推荐(0) 编辑
摘要: 1 from selenium import webdriver 2 import time 3 4 driver = webdriver.PhantomJS(executable_path="D:/phantomjs/bin/phantomjs.exe") 5 driver.get("http://study.163.com/course/courseMain.htm?course... 阅读全文
posted @ 2017-04-19 13:46 Erick-LONG 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1 from email.header import Header 2 from email.mime.text import MIMEText 3 from email.utils import parseaddr,formataddr 4 import smtplib 5 from email.mime.multipart import MIMEMultipart 6 from e... 阅读全文
posted @ 2017-04-19 13:44 Erick-LONG 阅读(225) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 38 下一页