python
Marvin-nj
技精为专
展开
-
jason格式生成
想要生成如下格式jason文件:{ "query": { "bool": { "should": [ {"term": { "staticUrl.keyword": "/text2video/videos/sanguo-jilu/sanguo-01/0.mp4" }}, {"term": { "staticUrl.keyword": "/text2video/videos/sanguo-ji...原创 2021-05-07 19:59:35 · 342 阅读 · 0 评论 -
基于python简单socket实现
服务端:#!/usr/bin/pythonimport socketfrom time import ctimes=socket.socket() #默认AF_INET,SOCK_STREAMadd=('',5050) # ''为空表示可以使用任何地址s.bind(add)s.listen(5) #大于1即可,一般取5print "start service proc...原创 2018-02-26 15:10:43 · 427 阅读 · 0 评论 -
数据清洗----python
#!usr/bin/python# -*- coding: UTF-8 -*-from __future__ import unicode_literalsimport reimport sysnums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']decimal_label = ['角', '分']small_int_la...原创 2018-04-19 15:18:17 · 346 阅读 · 0 评论 -
python 爬取电影名、电视名、或人民
关于爬虫的一个入门博客: http://blog.sina.com.cn/s/blog_63cf1c510101dshu.html BeautifulSoup的使用: http://wiki.jikexueyuan.com/project/python-crawler-guide/beautiful-soup.html https://www.c...原创 2018-04-20 14:35:42 · 1392 阅读 · 0 评论 -
python2 与python3 unicode与decode
unicode()与decode():https://blog.csdn.net/m0_38080253/article/details/78841280python2与python3区别https://www.cnblogs.com/meng-wei-zhi/articles/8194801.html转载 2018-04-27 14:40:22 · 797 阅读 · 0 评论