上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 49 下一页
摘要: package main import ( "fmt" "time" ) func batchProcessor(ch <-chan string, batchSize int, flushInterval time.Duration) { var batch []string timer := t 阅读全文
posted @ 2024-10-25 13:54 朝阳1 阅读(32) 评论(0) 推荐(0)
摘要: toml jsonwebtoken = "9" rs use serde::{Deserialize, Serialize}; use chrono::Utc; use jsonwebtoken::errors::ErrorKind; use jsonwebtoken::{decode, encod 阅读全文
posted @ 2024-10-23 17:31 朝阳1 阅读(59) 评论(0) 推荐(0)
摘要: toml [dependencies] actix-web = "4" mysql = "25.0.0" chrono = "0.4" serde = { version = "1.0", features = ["derive"] } jsonwebtoken = "9" constants pu 阅读全文
posted @ 2024-10-22 11:23 朝阳1 阅读(238) 评论(0) 推荐(0)
摘要: toml [dependencies] mysql = "25.0.0" [[bin]] name = "mysql" path = "src/mysql.rs" mysql.rs use mysql::*; use mysql::prelude::*; #[derive(Debug)] struc 阅读全文
posted @ 2024-10-19 11:34 朝阳1 阅读(157) 评论(0) 推荐(0)
摘要: 模拟效果:用户注册/登陆成功,返回自己的公钥,注册时候生成的私钥和公钥入库。下次进来的时候,加解密是动态的,也就是每个用户都不一样 from cryptography.hazmat.backends import default_backend from cryptography.hazmat.pr 阅读全文
posted @ 2024-10-19 09:43 朝阳1 阅读(268) 评论(0) 推荐(0)
摘要: 现在已经开放下载了,官网地址 https://cangjie-lang.cn/ 截至目前24-10-18,还是内测版本需要申请 1:关注公众号 《仓颉编程语言》 2:发送“SDK” 3:填写申请表单,等待邮件 4:下载对应版本的安装包 https://gitcode.com/Cangjie wind 阅读全文
posted @ 2024-10-18 13:55 朝阳1 阅读(152) 评论(0) 推荐(0)
摘要: 1: 按下Win + R键,输入regedit,打开注册表编辑器 2、按顺序找到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor 3、点击右键,选择“新建” 》“字符串值”,命名为autorun 4、点击autorun,修改数值数据为ch 阅读全文
posted @ 2024-10-18 13:44 朝阳1 阅读(165) 评论(0) 推荐(0)
摘要: use xxx_db; db.collection.createIndex( keys, options ) == db.表名.createIndex( keys, options ) createIndex() 方法基本语法格式如下所示: db:数据库的引用。 collection:集合的名称,表 阅读全文
posted @ 2024-10-16 17:09 朝阳1 阅读(368) 评论(0) 推荐(0)
摘要: ws服务器是单独的,专门用来推送消息。js用来连接ws,发消息。eel程序用户处理消息 ws服务器 import websockets import asyncio # 存储所有WebSocket连接的集合 connected_clients = set() async def websocket_ 阅读全文
posted @ 2024-10-16 11:55 朝阳1 阅读(68) 评论(0) 推荐(0)
摘要: 安装eel pip install eel py import eel import random # 笑话列表 jokes = [ "为什么电脑经常生病?因为窗户(Windows)总是开着!", "为什么数学书看起来总是很悲伤?因为它里面有太多的问题(problems)", "为什么海洋里没有电脑 阅读全文
posted @ 2024-10-16 10:33 朝阳1 阅读(178) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 49 下一页