会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Hank
求学之路无坦途,问艺之路无捷径.
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
11
12
13
14
15
16
17
18
19
···
67
下一页
2019年10月31日
Python测试代理ip是否有效
摘要: 方式一: 通过icanhazip.com返回的ip地址进行检测 方式二: Telnet方法 from: https://www.jb51.net/article/144418.htm http://http.hunbovps.com/article id 423.html
阅读全文
posted @ 2019-10-31 15:54 hank-li
阅读(7501)
评论(0)
推荐(0)
2019年10月28日
JavaScript去除数组中重复的数字
摘要: 结果:
阅读全文
posted @ 2019-10-28 17:07 hank-li
阅读(1848)
评论(0)
推荐(0)
Python连接redis
摘要: ``` import redis pool = redis.ConnectionPool(host='localhost', port=6379,encoding="UTF-8",decode_responses=True) r = redis.Redis(connection_pool=pool) result = r.keys("*") #遍历所有元素 for res in result: p
阅读全文
posted @ 2019-10-28 13:25 hank-li
阅读(195)
评论(0)
推荐(0)
[已解决]报错: Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
摘要: 问题: windows下安装Redis第一次启动报错: 解决: 在命令行中运行 然后重新运行 启动成功! from: https://www.cnblogs.com/shaosks/p/7089786.html
阅读全文
posted @ 2019-10-28 12:01 hank-li
阅读(1941)
评论(0)
推荐(0)
[已解决]报错: No module named pip
摘要: cmd中敲命令: 更新升级pip命令:
阅读全文
posted @ 2019-10-28 10:09 hank-li
阅读(671)
评论(0)
推荐(0)
[已解决]报错: twisted 18.7.0 requires PyHamcrest>=1.9.0
摘要: 1.下载对应的Twisted,下载地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/ twisted 2.通过Anaconda3的Anaconda Prompt进行安装 3.具体步骤: (1) cd 下载的文件地址,如本人的:cd F:\下载 (2)pip
阅读全文
posted @ 2019-10-28 10:08 hank-li
阅读(8745)
评论(0)
推荐(0)
2019年10月27日
[未完]构建代理池
摘要: 第一步: 通过 ProxyBroker 获取代理 第二步: HTTP服务器展示代理列表: http://0.0.0.0:8000/proxy.json 第三步: 结果测试 增加国内代理
阅读全文
posted @ 2019-10-27 12:39 hank-li
阅读(199)
评论(0)
推荐(0)
2019年10月23日
数据概览神器pandas_profiling
摘要: 安装: 用法如下: 结果展示:
阅读全文
posted @ 2019-10-23 19:40 hank-li
阅读(1326)
评论(0)
推荐(0)
删除字符串中的字符列表
摘要: 问题 我想在python中删除字符串中的字符: 但是我必须删除许多字符。 我想到了一个清单 但是如何使用list替换string中的字符? 方法一 from: https://www.itranslater.com/qa/details/2115759020177884160
阅读全文
posted @ 2019-10-23 17:31 hank-li
阅读(621)
评论(0)
推荐(0)
将xml文件转为txt文件
摘要: ``` import os import re import sys import glob import xml.etree.ElementTree as ET def xml_to_txt(indir,outdir): os.chdir(indir) annotations = os.listdir('.') annotations = glob.glob(str(annotations)+'
阅读全文
posted @ 2019-10-23 16:49 hank-li
阅读(6945)
评论(1)
推荐(0)
上一页
1
···
11
12
13
14
15
16
17
18
19
···
67
下一页
公告