
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 · 438 阅读 · 0 评论 -
基于python简单socket实现
服务端: #!/usr/bin/python import socket from time import ctime s=socket.socket() #默认AF_INET,SOCK_STREAM add=('',5050) # ''为空表示可以使用任何地址 s.bind(add) s.listen(5) #大于1即可,一般取5 print "start service proc...原创 2018-02-26 15:10:43 · 463 阅读 · 0 评论 -
数据清洗----python
#!usr/bin/python # -*- coding: UTF-8 -*- from __future__ import unicode_literals import re import sys nums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'] decimal_label = ['角', '分'] small_int_la...原创 2018-04-19 15:18:17 · 404 阅读 · 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 · 1456 阅读 · 0 评论 -
python2 与python3 unicode与decode
unicode()与decode():https://blog.youkuaiyun.com/m0_38080253/article/details/78841280python2与python3区别https://www.cnblogs.com/meng-wei-zhi/articles/8194801.html转载 2018-04-27 14:40:22 · 866 阅读 · 0 评论