admin的头像-闪狐博客
管理员
这家伙很懒,什么都没有写...
python爬虫-闪狐博客

python爬虫

import requests import json import time from typing import Dict, List, Any class VideoScraper: def __init__(self): # 微信环境请求头 - 与test_categories.py完全相同 self.headers = { ...
3个月前
03914
解决npm 在Vscode中无法使用的问题-闪狐博客

解决npm 在Vscode中无法使用的问题

1、在 vscode 终端执行 get-ExecutionPolicy # 返回 Restricted 说明状态是禁止的 Restricted 2、更改状态 set-ExecutionPolicy RemoteSigned 如果提示需要管理员权限,可加参数运行 Set-Execut...
12个月前
0737
cocos 获取所有节点组件信息-闪狐博客

cocos 获取所有节点组件信息

在浏览器控台输入一下代码运行即可var scene = cc.director.getScene(); var nodeList = new Array(); var total = 0; var startTime = new Date().valueOf(); var searchNode = function (node...
11个月前
0506
UNIAPP自定义底部TabBar-闪狐博客

UNIAPP自定义底部TabBar

1.项目中创建一个 components 文件夹2.文件夹中创建一个TabBar文件夹,在其中创建TabBar.vue文件3.将其源码复制到TabBar.vue中<template> <view> <view class='content' :style=...
1年前
0665
tp6 读取加密文件里面函数名称-闪狐博客

tp6 读取加密文件里面函数名称

public function code() { /* ---------- 1. 只跑一次 ---------- */ if (!empty($GLOBALS['_dumped'])) { return; } $GLOBALS['_dumped'] = true; /* ---------- 2. 准备日志文件 ---------- *...
6个月前
0299
电脑编程环境搭建-闪狐博客

电脑编程环境搭建

首先打开cmd控制台切换winget的国内源winget source remove winget winget source add winget https://mirrors.ustc.edu.cn/winget-source --trust-level trusted最基本的开发环境winget instal...
11个月前
011910
cocos 反序列场景报错解决方案-闪狐博客

cocos 反序列场景报错解决方案

setterMap = [(obj, data) => { if (!obj) obj = {}; // 检查 obj 是否存在,如果不存在则初始化为空对象 obj.x = data[1] !== undefined ? data[1] : 0; // 如果 data[1] 是 undefined,则...
11个月前
06810
git 提交本地到远程仓库-闪狐博客

git 提交本地到远程仓库

1.打开git客户端,cd到要上传的项目文件夹下2.输入git init命令3.输入git add .4.输入git commit -m “first commit” 第一次会让输入git的邮箱、用户名,输入一下5.添加远程仓库地址git remote...
1年前
06315
提取编译后的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,...
4个月前
05615
PHP 卡密生成-闪狐博客

PHP 卡密生成

生成不重复的随机数字,可自定义长度(最多支持10位数) /** * 生成不重复的随机数字(不能超过10位数,否则while循环陷入死循环) * @param int $start 需要生成的数字开始范围 * @param int $en...
11个月前
04715