随笔分类 -  Python

摘要:Python .Net 早报 来源于 365资讯简报 Python demo ''' 早报 早报地址:https://www.163.com/dy/media/T1603594732083.html ''' import requests from lxml import etree def mai 阅读全文
posted @ 2021-11-24 09:11 Alex_Mercer 阅读(907) 评论(0) 推荐(0)
摘要:Python 京东云无线宝消息推送 配置文件 注释里面有写,懒得用配置文件了 代码 # 京东云无线路由宝推送 import requests import json import time import hmac import hashlib import base64 import urllib. 阅读全文
posted @ 2021-02-22 13:20 Alex_Mercer 阅读(403) 评论(2) 推荐(0)
摘要:直接上代码 ###导入模块 import requests from lxml import etree import requests,json import sys import difflib import os header={'User-Agent':'Mozilla/5.0 (Windo 阅读全文
posted @ 2020-07-30 15:38 Alex_Mercer 阅读(198) 评论(0) 推荐(0)
摘要:Python 批量打印文件 参考地址 https://www.pianshen.com/article/6297173367/ 安装环境 pip install pypiwin32 单个文件打印栗子 import win32api import win32print import os def pr 阅读全文
posted @ 2020-07-29 16:14 Alex_Mercer 阅读(1608) 评论(0) 推荐(0)
摘要:参考链接 https://www.jb51.net/article/173256.htm 说明 下面先是 对比文件名和大小是否一致,不一致则替换。目标文件夹没有则直接拷贝 并且在目标文件夹追加了一个log.txt日志 阅读全文
posted @ 2020-04-18 00:23 Alex_Mercer 阅读(755) 评论(0) 推荐(0)
摘要:参考链接 https://www.runoob.com/python/python date time.html 直接上代码 阅读全文
posted @ 2020-04-18 00:22 Alex_Mercer 阅读(114) 评论(0) 推荐(0)
摘要:直接K代码 阅读全文
posted @ 2020-04-18 00:21 Alex_Mercer 阅读(154) 评论(0) 推荐(0)
摘要:参考链接 https://www.jb51.net/article/157326.htm 定义变量 第一种写法 第二种写法 第三种写法。//我喜欢简洁的 (flase,true)[表达式] 阅读全文
posted @ 2020-04-18 00:20 Alex_Mercer 阅读(86) 评论(0) 推荐(0)
摘要:安装打包程序 打包程序 阅读全文
posted @ 2020-03-09 15:39 Alex_Mercer 阅读(138) 评论(0) 推荐(0)
摘要:参考地址 https://www.cnblogs.com/cnwuchao/p/10562416.html 环境变量 https://www.cnblogs.com/yzh blog/p/11670995.html pip安装 Python环境安装 1.安装好python,复制安装位置。(例如:C: 阅读全文
posted @ 2020-02-12 16:24 Alex_Mercer 阅读(294) 评论(0) 推荐(0)
摘要:参考地址 https://blog.csdn.net/ezreal_tao/article/details/91154768 etree如何选取 思路讲解 1.请求热搜地址,获取到返回值。(http://top.baidu.com/buzz?b=1&fr=20811) 2.采用的etree去选取对应 阅读全文
posted @ 2020-01-07 14:28 Alex_Mercer 阅读(743) 评论(0) 推荐(0)
摘要:来源:https://www.cnblogs.com/yetj/p/10748820.html 阅读全文
posted @ 2019-11-28 16:50 Alex_Mercer 阅读(344) 评论(0) 推荐(0)
摘要:来源:https://www.cnblogs.com/kanneiren/p/9981084.html strInput="A319060267" bs=str(base64.b64encode(strInput.encode('utf-8')),"utf-8") print('转码:'+bs) p 阅读全文
posted @ 2019-11-28 16:39 Alex_Mercer 阅读(5139) 评论(0) 推荐(0)
摘要:错误提示:消息:会话未创建:此版本的ChromeDriver仅支持Chrome版本76 原因是Chrome 自动升级,导致ChromeDriver版本没有与Chrome同步,需要更新ChromeDriver ChromeDriver下载地址: http://npm.taobao.org/mirror 阅读全文
posted @ 2019-11-07 08:59 Alex_Mercer 阅读(3114) 评论(2) 推荐(0)
摘要:文章来源:https://i.cnblogs.com/EditArticles.aspx?opt=1 python中的lamdba表达式可以这么理解 f=lambda x,y,z:x+y+z print(f(1,2,3)) # 6 [ or ] 可以理解为 同时调用多个方法: a=[1,2,3,4] 阅读全文
posted @ 2019-09-26 15:40 Alex_Mercer 阅读(933) 评论(0) 推荐(0)
摘要:来源地址:https://blog.csdn.net/dss875914213/article/details/86500146 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple 阅读全文
posted @ 2019-09-26 11:27 Alex_Mercer 阅读(2852) 评论(0) 推荐(0)