自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

编码行者的博客

失败是什么?没有什么,只是更走近成功一步;成功是什么?就是走过了所有通向失败的路,只剩下一条路,那就是成功的路。

  • 博客(19)
  • 资源 (2)
  • 收藏
  • 关注

原创 Java反射无法获取参数名称 IDEA 和 Maven正确配置!!

Maven打包也需要配置

2019-12-27 15:36:28 517 2

原创 Python aiohttp简单入门

import aiohttpimport asyncioasync def fetch(session, url): async with session.get(url) as response: return await response.read()async def main(URL): async with aiohttp.ClientSes...

2019-12-26 20:35:01 245

原创 Python 下载文件获取文件名

def get_file_name(url, headers): filename = '' if 'Content-Disposition' in headers and headers['Content-Disposition']: disposition_split = headers['Content-Disposition'].split(';') ...

2019-12-26 20:04:58 9291

原创 Python markdown转epub (格式间转换)

import pypandocdef readme(): """ 转化文件的格式。 convert(source, to, format=None, extra_args=(), encoding='utf-8', outputfile=None, filters=None) parameter- source:源文件 to:目...

2019-12-26 19:50:06 1959

原创 Python 下载 懒人听书音频专辑

import htmlimport osimport threadingfrom concurrent.futures import ThreadPoolExecutorimport requestsheaders = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (...

2019-12-26 19:46:12 1580 8

原创 Python 操作windows系统 实现点击,输入等操作

import timeimport win32apiimport win32conimport win32guipara_hld = win32gui.FindWindow(None, "无标题 - 记事本")def key(code): win32api.keybd_event(code, 0, 0, 0) # enter win32api.keybd_eve...

2019-12-26 19:45:27 1328

原创 Python if else 和 for in 简写

if else 简写 # 1. 通常写法 b = 4 if b > 4: print('对了,b: ',b) else: print('错了,b:'+b) # 2. 简写 '对了' if b > 4 else '错了'语法格式:if为true时 if 条件 else if为false时类似:条件 ? if为true时 : if为fa...

2019-12-25 11:07:31 2186

原创 Python pyinstaller 安装或打包报错问题

一、安装Pyinstallerpip install 换成 easy_install 也可以便捷安装:pip install pyinstaller升级安装:pip install --upgrade pyinstaller报错原因:安装开发版或指定版本:pip install https://github.com/pyinstaller/pyinstaller/archive/dev...

2019-12-20 16:42:01 266

原创 Blob Url下载文件

<!DOCTYPE html><html><head><meta charset="utf-8"><title></title></head><body> <a href="" id="download">点击下载</a> <script> le...

2019-12-19 15:18:27 2614 2

原创 字符串元素转 Blob URL

<!DOCTYPE html><html><head><meta charset="utf-8"><title></title></head><body> <script> iframe = document.createElement('iframe'); ifra...

2019-12-19 15:09:07 452

原创 使用 Blob Url 实现上传预览图片

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Blob Test</title> <script> function handleFile(e) { var ...

2019-12-19 14:25:01 1990

原创 使用 Blob URL.createObjectURL 显示(同源)图片

<!DOCTYPE html><html><head><meta charset="utf-8"> <title>使用 Blob URL.createObjectURL 显示(同源)图片</title> </head><body > <button id="getPic" >1...

2019-12-19 14:22:07 2050

原创 Python 抓取 快代理、西刺代理 、西拉代理等等 构建免费代理池

import reimport requestsfrom lxml import etreeheaders = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36"}...

2019-12-18 18:00:56 1152

原创 Python 掘金文章下载转Markdown

import osimport html2epubimport html2textimport requestsfrom bs4 import BeautifulSoupfrom parsel import Selectorheaders = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9...

2019-12-18 17:55:08 825

原创 Python腾讯OCR

import base64import hashlibimport timeimport uuidfrom urllib import parseimport requestsAPP_ID = "2115425241"APP_KEY = "IS1oUQtC7Vhy91YZ"OCR = 'https://api.ai.qq.com/fcgi-bin/ocr/ocr_general...

2019-12-18 17:36:18 290

原创 Python微信文章 抓取转PDF

电脑需要安装wkhtmltopdfhttps://wkhtmltopdf.org/downloads.htmlimport ioimport sysimport requestsfrom bs4 import BeautifulSoupfrom articleUtils import save_html, save_pdfsys.stdout = io.TextIOWrapp...

2019-12-18 17:33:51 8339

原创 Python王者荣耀刷金币

import osimport timeos.system("adb shell screencap -p /sdcard/screen.png") # 截屏os.system("adb pull /sdcard/screen.png") # 保存def click(x, y): return os.system(f"adb shell input tap {x} {y}...

2019-12-18 17:27:09 721 2

原创 使用python开发 百度网盘接口

官网APIimport webbrowserimport requestsAPI_KEY = 'zd9ZzGGXe7AGqL582tlqaW6q'SECRET_KEY = 'DRZ42IOQeMNkxdmGRE3u24xH8cEBBv8B'class BaiduPan: def __init__(self): self.login_status = Fal...

2019-12-18 17:14:21 2956 13

原创 基于腾讯云快速搭建博客 利用Nginx实现端口转发

基于腾讯云快速搭建博客https://github.com/otale/tale/wiki/01.-%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8Tale01. 如何使用Talebiezhi edited this page on 8 Dec 2018 · 12 revisions必须环境该说明针对于服务器环境,如 Ubuntu、CentOS,您只需要有 JDK...

2019-12-05 19:17:55 963

爬取知乎专栏文章并生成PDF css文件

https://blog.csdn.net/mbh12333/article/details/103264866

2019-11-26

Java内嵌式Tomcat-TomcatDemo

这是一个Java内嵌式 Tomcat的Demo。详细文章请见我的博客

2018-12-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除