随笔分类 -  python学习日记

上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要:发现怎么处理还是会有锯齿 一.一开始我的代码 def convert_image_to_circle(pic_path, outdir): ima = Image.open(pic_path).convert("RGBA") size = ima.size # 因为是要圆形,所以需要正方形的图片 r 阅读全文
posted @ 2020-08-13 16:06 小小咸鱼YwY 阅读(858) 评论(0) 推荐(0) 编辑
摘要:1.resize的使用 img_obj.resize((size, size), 模式) 2.模式的类型 参数值 含义 Image.NEAREST 低质量 Image.BILINEAR 双线性 Image.BICUBIC 三次样条插值 Image.ANTIALIAS 高质量 阅读全文
posted @ 2020-08-13 15:16 小小咸鱼YwY 阅读(1361) 评论(0) 推荐(0) 编辑
摘要:代码+注释 from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.hazmat.prim 阅读全文
posted @ 2020-08-08 16:52 小小咸鱼YwY 阅读(944) 评论(0) 推荐(0) 编辑
摘要:ArrayBuffer转String: 解决中文乱码(模板) function ab2str(buf) { return new Uint16Array(buf) // encodedString = String.fromCodePoint.apply(null, new Uint16Array( 阅读全文
posted @ 2020-07-29 17:24 小小咸鱼YwY 阅读(3149) 评论(0) 推荐(0) 编辑
摘要:python脚本 # -*- coding: utf-8 -*- import logging import frida import sys logging.basicConfig(level=logging.DEBUG) def on_message(message, data): if mes 阅读全文
posted @ 2020-07-29 17:15 小小咸鱼YwY 阅读(3230) 评论(0) 推荐(0) 编辑
摘要:国内免费临时手机号 https://sms.cm https://www.pdflibr.com https://www.becmd.com http://www.smszk.com 国外免费临时手机号 https://zh.mytrashmobile.com(中文) https://ch.free 阅读全文
posted @ 2020-07-09 14:26 小小咸鱼YwY 阅读(2703) 评论(0) 推荐(1) 编辑
摘要:一.首先就是按照这两个apk 声明仅供学习 justTrustMe 链接:https://pan.baidu.com/s/1av3oaez4y4n6a9C1I0VsAg 提取码:mjqg VirtualXposed 链接:https://pan.baidu.com/s/1cin71N08r12GDW 阅读全文
posted @ 2020-07-08 16:48 小小咸鱼YwY 阅读(5208) 评论(0) 推荐(0) 编辑
摘要:一.官方文档 https://pypi.org/project/muggle-ocr/ 二模块安装 pip install muggle-ocr # 因模块过新,阿里/清华等第三方源可能尚未更新镜像,因此手动指定使用境外源,为了提高依赖的安装速度,可预先自行安装依赖:tensorflow/numpy 阅读全文
posted @ 2020-07-02 18:22 小小咸鱼YwY 阅读(4880) 评论(0) 推荐(0) 编辑
摘要:1.adb拉取小程序 adb pull /data/data/com.tencent.mm/MicroMsg/自己shell命令进入手机看看你账号的目录名称/appbrand/pkg D://pkg #整个小程序目录都拉下来放D://pkg 2.解析xxx.wxapkg微信小程序 git 地址:ht 阅读全文
posted @ 2020-07-02 16:04 小小咸鱼YwY 阅读(763) 评论(0) 推荐(0) 编辑
摘要:一.通过console.log输出(我最喜欢的) 1.js脚本 1.js var arguments = process.argv.splice(2); //获得入参 var a= arguments[0]; 取第一个 console.log(a) //输出 2.python脚本 test_1.py 阅读全文
posted @ 2020-07-01 19:52 小小咸鱼YwY 阅读(2288) 评论(0) 推荐(0) 编辑
摘要:一.node启动js-3DES-ECB加密 var arguments = process.argv.splice(2); // console.log('所传递的参数是:', arguments); var password = arguments[0]; //加密的password var t= 阅读全文
posted @ 2020-07-01 18:25 小小咸鱼YwY 阅读(615) 评论(0) 推荐(0) 编辑
摘要:一.node启动js公钥加密 //需要导入模块npm install node-forge var arguments = process.argv.splice(2); // console.log('所传递的参数是:', arguments); var e = arguments[1]; var 阅读全文
posted @ 2020-07-01 18:17 小小咸鱼YwY 阅读(512) 评论(0) 推荐(0) 编辑
摘要:1.解决方法 #pycrypto、pycrytodome和crypto是一个东西,crypto在python上面的名字是pycrypto, 1.pip3 uninstall pycryptodome 2.pip3 install pycryptodome 3.pip3 install pycrypt 阅读全文
posted @ 2020-07-01 17:13 小小咸鱼YwY 阅读(2652) 评论(0) 推荐(0) 编辑
摘要:第一步 在项目目录新建.gitignore文件 第二步 配置文件 文件名可以使用正则匹配 # Default ignored files # 比如常见的.idea .idea 阅读全文
posted @ 2020-06-15 10:02 小小咸鱼YwY 阅读(309) 评论(0) 推荐(0) 编辑
摘要:一.浏览器内核太捞了一般人都会避开他 from selenium.webdriver import Chrome from selenium.webdriver import ChromeOptions option = ChromeOptions() option.add_experimental 阅读全文
posted @ 2020-06-03 18:18 小小咸鱼YwY 阅读(1141) 评论(0) 推荐(0) 编辑
摘要:转载https://www.jianshu.com/p/5d27888e7c93#!/xh #!/usr/bin/env python # -*- coding=utf-8 -*- """ AES加密解密工具类 @author jzx @date 2018/10/24 此工具类加密解密结果与 htt 阅读全文
posted @ 2020-06-03 17:25 小小咸鱼YwY 阅读(950) 评论(0) 推荐(0) 编辑
摘要:from urllib import request #网上很多说的urllib2,在python3中其实就是urllib.request proxy_support = request.ProxyHandler({'http':'http://username:password@IP:port'} 阅读全文
posted @ 2020-06-02 20:47 小小咸鱼YwY 阅读(1050) 评论(0) 推荐(0) 编辑
摘要:```python import sys sys.path.append("./") import os import datetime import logging import platform from logging.handlers import RotatingFileHandler #linux日志路径 LIUNX_LOG_PATH='/store/logs/xxxxxx/' log 阅读全文
posted @ 2020-05-07 18:52 小小咸鱼YwY 阅读(578) 评论(0) 推荐(0) 编辑
摘要:一.核心重点 使用python后端框架:tornado 调度:redis队列 存手机的class_name采取头取尾曾 多台手机连接方式 connect_device(f"Android:///{class_name}") #class_name也就是云手机ip+端口,或者说本地手机连接的名称,你可 阅读全文
posted @ 2020-05-03 11:33 小小咸鱼YwY 阅读(1927) 评论(0) 推荐(0) 编辑
摘要:一.为什么发这博客 前几天业务需要需要操作云手机进行爬取没办法只有混进airtest官方群边学习边进行开发,蛮简单的东西(可能是我之前会selenium,appuim关系吧),但是群里会有很多问题,关于匹配元素其实很简单..... 我就把我使用经验总结一下 二.单个和多个 '你一定要把它当做一个网页 阅读全文
posted @ 2020-05-03 11:02 小小咸鱼YwY 阅读(5122) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
点击右上角即可分享
微信分享提示