摘要: php-curl请求接口一般都会碰到的问题,记录一下; 请求域名对应host添加到请求头中 <?php $host = gethostbyname('kingcard.dgunicom.com'); curl_setopt($ch, CRULOPT_HTTPHEADER, ['Host: '.$ho 阅读全文
posted @ 2021-12-03 15:30 1553 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 来源 山西更新科技-亚马逊应用服务器EC2迁移到Lightsail过程 Lightsail价格每个月5$起,是一个不错的选择 官网地址 https://aws.amazon.com/cn/lightsail/购买后通过控制面板进入管理页 创建实例 选择好节点、平台、镜像,填写其它自定义信息国内可以选 阅读全文
posted @ 2021-10-25 11:21 1553 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 重新安装解决 方法 打开 https://packagecontrol.io/installation 按操作说明从新下载安装 阅读全文
posted @ 2021-10-08 16:48 1553 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 今天朋友问到一个有趣的问题,直接把我难住了 下面是我给出的方法 ,这个不是准确答案,请路过园友不吝指教. #新建测试表,添加数据 -- Table structure for test-- DROP TABLE IF EXISTS `test`;CREATE TABLE `test` ( `id` 阅读全文
posted @ 2021-09-09 22:06 1553 阅读(171) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- from PyQt5.Qt import (QThread, QMoveEvent, QResizeEvent, QPaintEvent, QCloseEvent) from PyQt5.QtCore import (QFileInfo, QSize, 阅读全文
posted @ 2021-05-07 13:22 1553 阅读(3254) 评论(0) 推荐(0) 编辑
摘要: 从网络请求中可以看到接口请求中有对传递的参数签名, 通过反编译团油apk,可以从源码中找到接口签名方法和参数。 反编译安卓需要用到的三件套 apktool、dex2jar2.0、jd-gui , 网上下载好,按说明操作即可 # app_keyapp4.0.2_android# app_secret2 阅读全文
posted @ 2021-04-15 10:07 1553 阅读(1213) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.support.ui import WebDriverWait from sele 阅读全文
posted @ 2021-02-02 19:15 1553 阅读(684) 评论(0) 推荐(0) 编辑
摘要: 2月17日 19:36 迎泽大街,下班路上等红灯 3月26日 7:14 迎泽大街, 上班路上 5月6日 19:36 去晋源交物业费, 因为地势空旷新房子买在了晋源 7月6日 7:38 长风街新晋祠路口 , 上班路上等红灯 7月25日 15:19 长风街晋祠路口站牌后面 , 搬家前一天,搬东西到筋疲力 阅读全文
posted @ 2020-12-31 12:56 1553 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 处理线程中打开文件,每次读取一行并记录当前读取位置,没有下一行让出一秒logfile = './logs/%s_%s.log' % (appName, time.strftime('%Y_%m_%d')) file = open(logfile, 'r', encoding='utf-8') whi 阅读全文
posted @ 2020-12-24 18:29 1553 阅读(432) 评论(0) 推荐(1) 编辑
摘要: # _*_ coding: utf-8 _*_ import codecs from bs4 import BeautifulSoup import time, json, math import sys, os import asyncio import aiohttp import aiofil 阅读全文
posted @ 2020-12-03 12:47 1553 阅读(152) 评论(0) 推荐(0) 编辑