pyhanlp python 脚本的demo补充
摘要:java demo https://github.com/hankcs/HanLP/tree/master/src/test/java/com/hankcs/demo github python demo https://github.com/hankcs/pyhanlp/tree/master/t
阅读全文
'basetsd.h': No such file or directory
摘要:By Select the Windows 8.1 SDK During install. Download visualcppbuildtools_full.exe from below website https://download.microsoft.com/download/5/f/7/5
阅读全文
python gevent mokey
摘要:#eg: monkey的理解 http://www.bjhee.com/gevent.html
阅读全文
python 自然语言处理库https://www.nltk.org/nltk_data/
摘要:https://www.nltk.org/nltk_data/https://github.com/hankcs/HanLP
阅读全文
Python 图示集绵
摘要:http://nbviewer.jupyter.org/github/pyecharts/pyecharts-users-cases/blob/master/notebook-users-cases/notebook-user-cases.ipynb https://pyecharts.heroku
阅读全文
Python gevent
摘要:1\协程 def get_title(i): print(threading.current_thread().name) # 打印出当前线程名称 gevent.joinall([gevent.spawn(get_title, i) for i in range(10)]) def get_titl
阅读全文
Python threading
摘要:eg: Error self._target(*self._args, **self._kwargs) TypeError: get_zonghe_answers() takes 1 positional argument but 36 were given Instead, you should
阅读全文
Python Multiprocessing
摘要:http://wuduozhi.me/2018/06/21/python-Multiprocessing%E5%A4%9A%E8%BF%9B%E7%A8%8B/ https://blog.csdn.net/Winterto1990/article/details/48102005
阅读全文
python list 常用
摘要:l = [1,2,3,4] b = [4,5,6] l.remove(1) #val del l[0] #key new_list = l.extend(b) #[1,2,3,4,4,5,6] new_list = l.append('a') #[1,2,3,4,'a']
阅读全文
Python requests
摘要:resp = requests.get(url) ###### resp 属性: status_code text is_redirect encoding url ##########
阅读全文
Python json
摘要:import json json_value_tmp= json.loads(json_data) # api return value for data in json_value_tmp: a = data['name'] #json getdata from json file import
阅读全文
Python Try Except
摘要:Python Try: Except https://docs.python.org/3/tutorial/errors.html
阅读全文
numpy 矩阵变换transpose和swapaxes
摘要:1、transpose 交换 1、swapaxes交换
阅读全文
numpy 矩阵变换 reshape ravel flatten
摘要:1、 两者的区别在于返回拷贝(copy)还是返回视图(view),numpy.flatten()返回一份拷贝,对拷贝所做的修改不会影响(reflects)原始矩阵,而numpy.ravel()返回的是视图(view,也颇有几分C/C++引用reference的意味),会影响(reflects)原始矩
阅读全文
python list [:1]
摘要:python 切片slice 1、补充: https://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/0013868196352269f28f1f00aee485ea27e3c4e47f12b
阅读全文