摘要:
go build -ldflags="-s -w" -o server main.go 阅读全文
摘要:
首先在app目录下创建Task.php <?php namespace app; use Workerman\Connection\TcpConnection; class Task { /** * 只会执行一次 * @return void */ public function onWorkerS 阅读全文
摘要:
<?php // 定义扇形的圆心坐标和半径 $centerX = 0; // 扇形圆心X坐标 $centerY = 0; // 扇形圆心Y坐标 $radius = 10; // 扇形半径 // 定义子弹的起始坐标和速度 $startX = 5; // 子弹起始X坐标 $startY = 5; // 阅读全文
摘要:
import os import subprocess def play_videos_in_folder(folder_path): # 获取所有视频文件 files = [os.path.join(folder_path, f) for f in os.listdir(folder_path) 阅读全文
摘要:
最近有个需求是把看广告的日志转成excel package main import ( "bufio" "encoding/json" "flag" "fmt" "github.com/xuri/excelize/v2" "os" "time" ) // Ad 广告 type Ad struct { 阅读全文
摘要:
package main import ( "fmt" "github.com/shirou/gopsutil/cpu" "github.com/shirou/gopsutil/disk" "github.com/shirou/gopsutil/host" "github.com/shirou/go 阅读全文
摘要:
先通过命令行进入mysql的root账户: 更改加密方式 ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; 更改密码 ALTER USER 'root'@'localhost' IDENTIFI 阅读全文
摘要:
package main import ( "crypto/rand" "crypto/rsa" "crypto/x509" "crypto/x509/pkix" "encoding/pem" "math/big" "net" "os" "time" ) func main() { max := n 阅读全文
摘要:
1:有账号的情况下 use mysql; update user set Host = '%' where User='root'; flush privileges; 2:无账号的情况下,grant 命令重新创建一个用户 grant all privileges on *.* to root @" 阅读全文
摘要:
XA的性能很低,但是没得选的时候,也是个方案 <?PHP $dbtest1 = new mysqli("127.0.0.1","public","public","dbtest1")or die("dbtest1 连接失败"); $dbtest2 = new mysqli("127.0.0.1pub 阅读全文