python 爬取某个小说网站
import os import json import requests from urllib.parse import urljoin from bs4 import BeautifulSoup import re # 定义分类列表 bookcat = [ 'xuanhuan', 'xianxia', 'dushi', 'lishi', '...
清理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...
php 还原cocos加密后的uuid
<?php // 22位压缩后的 UUID解码配置 $BASE64_KEYS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; $values = array_fill(0, 123, 64); // max char code in base...
python 爬取某个听书网站
bookcode.txt下载txt文件13.2K # 小说信息接口 http://www.6yueting.com/web/index/xsDetail?code=802f1082 # 小说章节接口 http://www.6yueting.com/web/index/xsListdetail?code=802f1082&...
解决npm 在Vscode中无法使用的问题
1、在 vscode 终端执行 get-ExecutionPolicy # 返回 Restricted 说明状态是禁止的 Restricted 2、更改状态 set-ExecutionPolicy RemoteSigned 如果提示需要管理员权限,可加参数运行 Set-Execut...
cocos 获取所有节点组件信息
在浏览器控台输入一下代码运行即可var scene = cc.director.getScene(); var nodeList = new Array(); var total = 0; var startTime = new Date().valueOf(); var searchNode = function (node...
UNIAPP自定义底部TabBar
1.项目中创建一个 components 文件夹2.文件夹中创建一个TabBar文件夹,在其中创建TabBar.vue文件3.将其源码复制到TabBar.vue中<template> <view> <view class='content' :style=...
tp6 读取加密文件里面函数名称
public function code() { /* ---------- 1. 只跑一次 ---------- */ if (!empty($GLOBALS['_dumped'])) { return; } $GLOBALS['_dumped'] = true; /* ---------- 2. 准备日志文件 ---------- *...









