摘要:
1 #include 2 #include 3 #include 4 5 typedef struct Node 6 { 7 int data; 8 struct Node *pNext; 9 }NODE,*PNODE; 10 11 typedef struct Stack 12 { 13 PNODE pTop; 1...
阅读全文
posted @ 2018-09-19 22:56
Worty
阅读(131)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 5 typedef struct Node 6 { 7 int data; 8 struct Node *pNext; 9 }NODE,*PNODE; 10 11 PNODE create_list(void); 12 void traverse_list(P...
阅读全文
posted @ 2018-09-18 21:21
Worty
阅读(1011)
推荐(0)
摘要:
1 import requests 2 from bs4 import BeautifulSoup 3 res = requests.get('http://sh.esf.fang.com/chushou/3_328298194.htm?channel=1,2&psid=1_37_70') 4 soup = BeautifulSoup(res.text,'html.parser') 5...
阅读全文
posted @ 2018-09-16 11:52
Worty
阅读(1289)
推荐(0)
摘要:
demo2: 推荐使用:Jupyter Notebook 做练习,很方便。
阅读全文
posted @ 2018-09-15 11:11
Worty
阅读(2481)
推荐(0)
摘要:
1 #网络资源(URLS) 2 import requests 3 newsurl = 'https://news.qq.com/' 4 res = requests.get(newsurl) 5 print(res.text)
阅读全文
posted @ 2018-09-14 23:28
Worty
阅读(126)
推荐(0)
摘要:
假设处理xml文件如下:xx.xml <china dn = "nay"><city quName="heikongjiang" pyName="heihei" cityName="ha2ging"/><city quName="heikongjiang" pyName="heihei" cityN
阅读全文
posted @ 2018-09-14 23:03
Worty
阅读(974)
推荐(0)
摘要:
1 #读csv,excel,json数据 2 with open('E:\\test\\xdd.csv','r') as f: 3 for line in f.readlines(): 4 print(line) 5 6 7 import pandas 8 df = pandas.read_csv('E:\\test\\xdd.csv') 9...
阅读全文
posted @ 2018-09-13 23:20
Worty
阅读(176)
推荐(0)
摘要:
1 # 写方法1 2 f = open('tmp.txt','w') 3 f.write('hello world') 4 f.close() 5 6 # 写方法2 7 with open('tmp.txt','w') as f: 8 f.write('hello \n word') 9 10 # 读 11 with open('tmp.txt', 'r'...
阅读全文
posted @ 2018-09-13 22:42
Worty
阅读(119)
推荐(0)
摘要:
方法一: 方法二: 1 import operator 2 from nltk.corpus import stopwords 3 stop_words = stopwords.words('English')#目的是去除人称代词等,注意根据编译提示下载相应库 4 5 speech_text = '
阅读全文
posted @ 2018-09-12 22:44
Worty
阅读(207)
推荐(0)
摘要:
完整的数据分析套件 统计科学计算 Numpy,Scipy,statsmodels 深度学习 TensorFlow,MXNET 结构化数据处理与分析 Pandas 大数据处理 PySpark 数据探索编辑器 Jupyter Notebook 机器学习 Scikit-learn
阅读全文
posted @ 2018-09-11 22:04
Worty
阅读(408)
推荐(0)