- 博客(2)
- 问答 (1)
- 收藏
- 关注
原创 在权限不够的linux服务器上自定义jieba分词的tmp_dir和cache_file属性
用anaconda3在个人目录下配置的局部python3环境,在这个环境下用jieba进行分词。报错:Building prefix dict from the default dictionary ...Loading model from cache /tmp/jieba.cacheDumping model to file cache /tmp/jieba.cacheDump cache
2017-11-22 11:28:06 9437 11
原创 python3 urlopen打开包含中文的url
当使用urllib.request.urlopen打开包含中文的链接时报错:from urllib import requesturl = 'https://baike.baidu.com/item/糖尿病'response = request.urlopen(url)提示错误:UnicodeEncodeError: ‘ascii’ codec can’t encode characters in
2017-11-05 15:25:25 9118
空空如也
scrapy爬某非空网站时,response响应值为200,body却是空的
2018-05-10
TA创建的收藏夹 TA关注的收藏夹
TA关注的人