10 2021 档案

摘要:代码没对齐 阅读全文
posted @ 2021-10-27 16:33 布都御魂 阅读(67) 评论(0) 推荐(0)
摘要:import hashlib import random import time import requests keyword = input('请输入你要查询的内容:') def youdao_trans(keyword): salt = str(int(time.time()) * 1000 阅读全文
posted @ 2021-10-26 11:49 布都御魂 阅读(203) 评论(0) 推荐(0)
摘要:var i= "320305.131321201"; function e(r) { var o = r.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g); if (null o) { var t = r.length; t > 30 && (r = "" + r.s 阅读全文
posted @ 2021-10-25 15:08 布都御魂 阅读(93) 评论(0) 推荐(0)
摘要:# 把code.js放在同级目录下def tran(): import json import execjs import requests url = "https://fanyi.baidu.com/v2transapi?from=zh&to=en" headers = { "Cookie": 阅读全文
posted @ 2021-10-25 15:07 布都御魂 阅读(432) 评论(0) 推荐(0)
摘要:1.确保pycharm是专业版 2.在seting->pluging里下载nodejs插件,第一个就是 3.把nodejs.exe配置到环境变量里 4.打开js文件,右键找到编辑‘xx.js’ 5.第一行节点选择器,填上nodejs的安装位置,保存 6.右键,运行文件 7.大功告成 阅读全文
posted @ 2021-10-25 11:34 布都御魂 阅读(4013) 评论(0) 推荐(0)
摘要:"""author:张鑫date:2021/10/22 11:50"""import redef warp_heareder(s): print("{") lines = s.splitlines() for i, line in enumerate(lines): k, v = line.spli 阅读全文
posted @ 2021-10-22 15:40 布都御魂 阅读(71) 评论(0) 推荐(0)
摘要:pip install PyExecJS 阅读全文
posted @ 2021-10-21 18:00 布都御魂 阅读(288) 评论(0) 推荐(0)
摘要:ir_content = tree.xpath('//p[@align="justify"]//text()')if ir_content == []: ir_content = tree.xpath('//td/p/span//text()')neirong = '\u3000\u3000' fo 阅读全文
posted @ 2021-10-21 14:59 布都御魂 阅读(52) 评论(0) 推荐(0)
摘要:配置1、打开Fiddler Tool->Fiddler Options->HTTPS 。 (配置完后记得要重启Fiddler). 选中"Decrpt HTTPS traffic", Fiddler就可以截获HTTPS请求,第一次会弹出证书安装提示,若没有弹出提示,勾选Actions-> Trust 阅读全文
posted @ 2021-10-21 10:03 布都御魂 阅读(491) 评论(0) 推荐(0)
摘要:"""author:张鑫date:2021/5/31 15:06"""def ascii_chineses(a): a = a.encode('ascii').decode('unicode_escape') print(a)if __name__ == '__main__': a = r'\u56 阅读全文
posted @ 2021-10-20 16:46 布都御魂 阅读(469) 评论(0) 推荐(0)
摘要:"""author:张鑫date:2021/5/31 15:11"""def c_a(name): name = name.encode('unicode_escape').decode('ascii') print(name)if __name__ == '__main__': name = '返 阅读全文
posted @ 2021-10-20 16:46 布都御魂 阅读(133) 评论(0) 推荐(0)
摘要:# coding:UTF-8import timedef time_turns(time1): if '小時' in time1: time2 = str(int(time.time()) - int(time1.split('小')[0]) * 3600) return time2 if '小时' 阅读全文
posted @ 2021-10-20 16:22 布都御魂 阅读(128) 评论(0) 推荐(0)
摘要:""" author:张鑫 date:2021/7/30 20:39 """ import time def time_turn(timenum): if 0 < len(timenum) < 11 and timenum.isdigit(): timenum = int(timenum) time 阅读全文
posted @ 2021-10-20 16:21 布都御魂 阅读(206) 评论(0) 推荐(0)
摘要:"""author:张鑫date:2021/7/23 17:16""""""author:张鑫date:2021/7/20 10:00"""import pymysqlconnect = pymysql.Connect( host='192.168.1.117', port=3306, user=' 阅读全文
posted @ 2021-10-20 16:18 布都御魂 阅读(45) 评论(0) 推荐(0)
摘要:"""author:张鑫date:2021/8/13 16:37"""import pymysql# 即将插入的数据# url2 = ''connect = pymysql.Connect( host='140.210.4.73', port=3306, user='twipad_cj', pass 阅读全文
posted @ 2021-10-20 16:17 布都御魂 阅读(350) 评论(0) 推荐(0)
摘要:"""author:张鑫date:2021/5/19 15:38"""# 导入模块import timeimport pymongoimport randomimport reimport pandas as pdimport numpy as np# 连接数据库database = pymongo 阅读全文
posted @ 2021-10-20 16:01 布都御魂 阅读(148) 评论(0) 推荐(0)
摘要:"""author:张鑫date:2021/6/24 16:31"""# 上取整from math import ceilnum1 = ceil(1.11)print(num1)num2 = ceil(90/20)print(num2)# 下取整num3 = int(1.11)print(num3) 阅读全文
posted @ 2021-10-20 15:59 布都御魂 阅读(55) 评论(0) 推荐(0)
摘要:"""author:张鑫date:2021/6/24 14:30"""import redef remove_label(content): if '<' in content: pre = re.compile('>(.*?)<') content = content.replace('&nbsp 阅读全文
posted @ 2021-10-20 15:51 布都御魂 阅读(58) 评论(0) 推荐(0)
摘要:# coding=gbkimport xlsxwriter as xwimport requestsimport reimport jsonimport timeimport randomfrom fake_useragent import UserAgentimport randomdef get 阅读全文
posted @ 2021-10-20 15:43 布都御魂 阅读(21) 评论(0) 推荐(0)
摘要:"""author:张鑫date:2021/8/12 10:48"""def today_start(): import time import datetime today = datetime.date.today() today_time = int(time.mktime(today.tim 阅读全文
posted @ 2021-10-20 15:40 布都御魂 阅读(24) 评论(0) 推荐(0)
摘要:import randomfrom time import sleepfrom selenium import webdriverfrom lxml import etreefrom selenium.webdriver import ActionChainsurl = []# 初始页面地址urls 阅读全文
posted @ 2021-10-20 15:34 布都御魂 阅读(93) 评论(0) 推荐(0)
摘要:"""author:张鑫date:2021/10/14 17:14"""import paramikoip = "140.210.4.73" # 服务器ipport = 22 # 端口号username = "zs_caoye" # 用户名password = "zs_caoye#@!s" # 密码 阅读全文
posted @ 2021-10-20 15:07 布都御魂 阅读(44) 评论(0) 推荐(0)
摘要:"""author:张鑫date:2021/10/14 17:14"""import timeimport paramikoimport requestsfrom lxml import etreefrom selenium import webdriverkeyword = 'SandyHsu31 阅读全文
posted @ 2021-10-20 15:06 布都御魂 阅读(75) 评论(0) 推荐(0)
摘要:先打开filder,再打开模拟器,使用脚本不要设置休眠 unable to get local issuer certificate (errno: 20, depth: 0) :mitmdump --ssl-insecure提示错误,但可以抓到数据 阅读全文
posted @ 2021-10-19 15:34 布都御魂 阅读(143) 评论(0) 推荐(0)
摘要:import redef comments(comments_data): comments_data = ''.join(comments_data) if comments_data == '': ir_nresrved2 = 0 ir_nresrved3 = 0 else: comments_ 阅读全文
posted @ 2021-10-19 11:46 布都御魂 阅读(64) 评论(0) 推荐(0)
摘要:1.找到夜神模拟器安装包所在位置,打开cmd 2.获取链接信息 adb devices 3.连接模拟器 adb connect * 4.获取root权限 adb root 5.使用remount账号登录 adb remount 6.进入shell adb shell 7.进入到shell端中的 /d 阅读全文
posted @ 2021-10-19 11:25 布都御魂 阅读(1248) 评论(0) 推荐(0)
摘要:把类型转变为字符串 for say in says: #转换数据类型,不然会报错 say = str(say) # 正则表达式获取必要数据 say = re.search('<p>(.*?)</p>',say) 阅读全文
posted @ 2021-10-15 11:40 布都御魂 阅读(237) 评论(0) 推荐(0)
摘要:1.先把pip升级到最新版本 python -m pip install --upgrade pip 2.pip install --user Paramiko 3.ok 阅读全文
posted @ 2021-10-15 11:11 布都御魂 阅读(76) 评论(0) 推荐(0)
摘要:把图片下载到本地 async def fetch_and_save_image(img_urls, title): try: # 获取代理,并确保它是正确的格式 if not proxy: print("代理配置错误,请检查 redis_ip.ip() 的返回值。") return async wi 阅读全文
posted @ 2021-10-14 16:08 布都御魂 阅读(159) 评论(0) 推荐(0)
摘要:选择所要固定行的下一行的任一单元格 点击“视图”选项卡中的“冻结窗格”按钮,这样子表格的第一行就固定了 阅读全文
posted @ 2021-10-11 10:07 布都御魂 阅读(3267) 评论(0) 推荐(0)