admin的头像-闪狐博客
管理员
这家伙很懒,什么都没有写...
宝塔防跨域配置-闪狐博客

宝塔防跨域配置

将以下代码放置到 站点配置的 server_name 字段的下面add_header Access-Control-Allow-Origin '*'; add_header Access-Control-Allow-Methods 'POST,PUT,GET,DELETE'; add_header Access-Contr...
8个月前
0499
cocos3dx web反编译 第三篇-闪狐博客

cocos3dx web反编译 第三篇

这篇讲述的是获取全部脚本文件,优化后存入scrip文件夹中const fs = require('fs'); const path = require('path'); const esprima = require('esprima'); const estraverse = require('estrave...
9个月前
0498
PHP 卡密生成-闪狐博客

PHP 卡密生成

生成不重复的随机数字,可自定义长度(最多支持10位数) /** * 生成不重复的随机数字(不能超过10位数,否则while循环陷入死循环) * @param int $start 需要生成的数字开始范围 * @param int $en...
8个月前
04615
提取编译后的cocos ts文件-闪狐博客

提取编译后的cocos ts文件

const fs = require('fs'); const path = require('path'); // 读取压缩文件 const inputFile = path.join(__dirname, 'assets/main/index.ee639.js'); const outputDir = path.join(__dirname,...
1个月前
04515
python爬取西红柿小说-闪狐博客

python爬取西红柿小说

import os import re import requests import time from os import remove import aiofiles from aiohttp import ClientSession, ClientTimeout import asyncio from colorama import init from...
7个月前
0447
python 爬取某个听书网站-闪狐博客

python 爬取某个听书网站

 bookcode.txt下载txt文件13.2K # 小说信息接口 http://www.6yueting.com/web/index/xsDetail?code=802f1082 # 小说章节接口 http://www.6yueting.com/web/index/xsListdetail?code=802f1082&...
7个月前
04415
通过python裁剪cocos打包后的图片集-闪狐博客

通过python裁剪cocos打包后的图片集

import os from PIL import Image import json # 读取图片 image_path = '14085874e.png' # 替换为你的图片路径 image = Image.open(image_path) print(f'Original image size: {image.size}') ...
8个月前
0437
cocos 获取所有节点组件信息-闪狐博客

cocos 获取所有节点组件信息

在浏览器控台输入一下代码运行即可var scene = cc.director.getScene(); var nodeList = new Array(); var total = 0; var startTime = new Date().valueOf(); var searchNode = function (node...
8个月前
0436
清理sql文件中INSERT INTO 内容-闪狐博客

清理sql文件中INSERT INTO 内容

const fs = require('fs'); const path = require('path'); // 读取 SQL 文件 const sqlFilePath = path.join(__dirname, 'index.sql'); let sqlContent = fs.readFileSync(sqlFilePath, 'utf-8...
9个月前
0419
python读取so文件输出到text-闪狐博客

python读取so文件输出到text

import osimport sysimport redef extract_strings(binary_data):    '''从二进制数据中提取可打印的字符串'''    # 使用正则表达式匹配至少4个连续的可打印字符    strings = re.findall...
34天前
0408