相关文章
怎么获得小学、初中高中教材的pdf版【转载】
教材pdf下载步骤:
步骤操作概述示例图步骤一:进入官网进入 国家智慧教育公共服务平台:https://www.smartedu.cn/,进行登录或注册步骤二:选择教材点击中小学智慧教育,点击教材,选择自己喜欢的教…
建站知识
2025/2/6 6:23:10
DeepSeek安装
安装运行环境
https://ollama.com/
安装验证
cmd指令 ollama -v
安装运行模型
https://ollama.com/library/deepseek-r1:14b-qwen-distill-q4_K_M 例如: ollama run deepseek-r1:1.5b-qwen-distill-q4_K_M
结果 再次使用时,直接cmd运行上一步的ru…
建站知识
2025/2/6 6:21:08
torchtext.get_tokenizer
文章目录 1. 说明2. pytorch代码 1. 说明
假设我们有一个句子如下:You can now install TorchText using pip! 分词后可得:[you, can, now, install, torchtext, using, pip, !]
2. pytorch代码
import torchtext
from torchtext.data import get_tok…
建站知识
2025/2/7 8:00:49
synchronized, volatile 在 DCL 的作用
背景
最近在看设计模式,在单例模式的 Double Check Lock(DCL)中,存在两个关键字:volatile & synchronized。
之前都知道 DCL 怎么写,直接套娃。但是这两关键字在单例里面的作用还没深究过,…
建站知识
2025/2/7 7:34:08
基于 SpringBoot3 的 SpringSecurity6 + OAuth2 自定义框架模板
🔖Gitee 项目地址:
基于SpringBoot3的 SpringSecurity6 OAuth2 自定义框架https://gitee.com/MIMIDeK/MySpringSecurityhttps://gitee.com/MIMIDeK/MySpringSecurityhttps://gitee.com/MIMIDeK/MySpringSecurity
建站知识
2025/2/6 6:01:42
数据库读写分离、事务的特性、事务隔离级别及默认级别、脏读不可重复读和幻读、更新丢失问题、写偏斜问题、MVCC
数据库读写分离 读写分离是将数据库的写操作和读操作分开处理,写操作全部在主库执行,读操作分布到从库中进行。 目的是提升系统并发性能(缓解了锁的争用)、降低主库负载(减少了事务分配)、提高可扩展性和可…
建站知识
2025/2/6 6:00:39
记录一下 在Mac下用pyinstallter 打包 Django项目
安装:
pip install pyinstaller 在urls.py from SheepMasterOneToOne import settings
from django.conf.urls.static import staticurlpatterns [path("admin/", admin.site.urls),path(generate_report/export/, ReportAdmin(models.Report, admin.site).generat…
建站知识
2025/2/6 5:57:33