10 2019 档案

摘要:方式一: 通过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 阅读(7405) 评论(0) 推荐(0) 编辑
摘要:结果: 阅读全文
posted @ 2019-10-28 17:07 hank-li 阅读(1844) 评论(0) 推荐(0) 编辑
摘要:``` 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 阅读(192) 评论(0) 推荐(0) 编辑
摘要:问题: windows下安装Redis第一次启动报错: 解决: 在命令行中运行 然后重新运行 启动成功! from: https://www.cnblogs.com/shaosks/p/7089786.html 阅读全文
posted @ 2019-10-28 12:01 hank-li 阅读(1929) 评论(0) 推荐(0) 编辑
摘要:cmd中敲命令: 更新升级pip命令: 阅读全文
posted @ 2019-10-28 10:09 hank-li 阅读(667) 评论(0) 推荐(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 阅读(8387) 评论(0) 推荐(0) 编辑
摘要:第一步: 通过 ProxyBroker 获取代理 第二步: HTTP服务器展示代理列表: http://0.0.0.0:8000/proxy.json 第三步: 结果测试 增加国内代理 阅读全文
posted @ 2019-10-27 12:39 hank-li 阅读(194) 评论(0) 推荐(0) 编辑
摘要:安装: 用法如下: 结果展示: 阅读全文
posted @ 2019-10-23 19:40 hank-li 阅读(1319) 评论(0) 推荐(0) 编辑
摘要:问题 我想在python中删除字符串中的字符: 但是我必须删除许多字符。 我想到了一个清单 但是如何使用list替换string中的字符? 方法一 from: https://www.itranslater.com/qa/details/2115759020177884160 阅读全文
posted @ 2019-10-23 17:31 hank-li 阅读(619) 评论(0) 推荐(0) 编辑
摘要:``` 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 阅读(6919) 评论(1) 推荐(0) 编辑
摘要:``` import jieba #分词库 import matplotlib.pyplot as plt #数学绘图库 from wordcloud import WordCloud #词云库 #1、读入txt文本数据 file=open("E:\Data\Lofter\demo-txt\demo.txt","r",encoding="utf-8") text =file.read() #2、结 阅读全文
posted @ 2019-10-23 16:44 hank-li 阅读(566) 评论(0) 推荐(0) 编辑
摘要:import re test='just for testjust for testtest' pat = re.compile('(?). ?(?=\ 阅读全文
posted @ 2019-10-23 16:12 hank-li 阅读(2992) 评论(0) 推荐(0) 编辑
摘要:创建数组 结构数组 连续数组的创建 排序 算术运算 统计函数 练习题:统计全班成绩 阅读全文
posted @ 2019-10-19 14:15 hank-li 阅读(355) 评论(0) 推荐(0) 编辑
摘要:_来源参考于网络_ 阅读全文
posted @ 2019-10-17 16:54 hank-li 阅读(2218) 评论(0) 推荐(1) 编辑
摘要:``` import pandas as pd from lxml import etree import json,requests,random import os,time,shutil,traceback def get_data(url, headers): try: store_res = requests.get(url=url, headers=headers) if store_ 阅读全文
posted @ 2019-10-16 17:52 hank-li 阅读(162) 评论(0) 推荐(0) 编辑
摘要:import win32com.client import time path = r'absolute dir' #比如填文件的绝对路径,比如d:/file/stock.xlsx xl = win32com.client.DispatchEx("Excel.Application") workbo 阅读全文
posted @ 2019-10-16 14:18 hank-li 阅读(1267) 评论(0) 推荐(0) 编辑
摘要:from: https://blog.csdn.net/revitalizing/article/details/47423427 阅读全文
posted @ 2019-10-16 13:22 hank-li 阅读(780) 评论(0) 推荐(0) 编辑
摘要:报错代码: 报错内容: 解决方案: from: https://blog.csdn.net/u010212101/article/details/78017924 阅读全文
posted @ 2019-10-16 13:14 hank-li 阅读(6536) 评论(0) 推荐(0) 编辑
摘要:报错代码如下: 报错内容如下: 已试用但未成功方案: 最后的解决方案如下: 阅读全文
posted @ 2019-10-16 11:39 hank-li 阅读(2133) 评论(0) 推荐(0) 编辑
摘要:from: cnblogs.com/everfight/p/pandas_read_large_number.html 阅读全文
posted @ 2019-10-15 23:20 hank-li 阅读(2212) 评论(0) 推荐(0) 编辑
摘要:问题: 解决: 定义一个就行 然后再看它读了window的哪些属性 都补上就行 阅读全文
posted @ 2019-10-11 11:55 hank-li 阅读(12731) 评论(1) 推荐(0) 编辑
摘要:``` DeprecationWarning: decodestring() is a deprecated alias since Python 3.1, use decodebytes() ``` 阅读全文
posted @ 2019-10-10 18:00 hank-li 阅读(2346) 评论(2) 推荐(0) 编辑
摘要:结果如下: 加个强制刷新 效果如下: 显示百分比 效果如下: 这种效果并不是理想结果,加 \r 效果如下: 使用tqdm库 效果如下: 效果如下: 阅读全文
posted @ 2019-10-06 15:31 hank-li 阅读(257) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示