上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: 1.对null值的字段设置默认值 COALESCE -- 查询user表的用户email, 为null时设置默认为'未填写' SELECT COALESCE(email, '未填写') FROM user WHERE user_id = '1'; 2.拼接字段值 CONCAT SELECT CONC 阅读全文
posted @ 2025-03-13 10:06 二月雪 阅读(5) 评论(0) 推荐(0)
摘要: Git提交描述格式 # Header头 <type>(<scope>): <subject> # Body体 <body> # Footer体 <footer> # Example: git commit -m "feat(v1.0.1): new user created API" git com 阅读全文
posted @ 2025-03-07 16:11 二月雪 阅读(60) 评论(0) 推荐(0)
摘要: 问题 安装了anaconda后,需要对对刚创建的环境进行激活,然后提示: CondaError: Run 'conda init' before 'conda activate' 然后执行了conda init后任然提示: CondaError: Run 'conda init' before 'c 阅读全文
posted @ 2025-02-24 11:19 二月雪 阅读(9107) 评论(0) 推荐(1)
摘要: 1、下载 官网:Anaconda Installershttps://www.anaconda.com/download/success 2、安装 双击 Anaconda3-2024.10-1-Windows-x86_64 点击 Next 点击 Agree 选中 All Users, 再点击 Nex 阅读全文
posted @ 2025-02-20 21:44 二月雪 阅读(5935) 评论(0) 推荐(1)
摘要: 安装依赖库elasticsearch pip install elasticsearch 代码实现 from elasticsearch import Elasticsearch # 初始化ES数据库对象 # 连接 Elasticsearch es = Elasticsearch("http://l 阅读全文
posted @ 2025-02-17 21:20 二月雪 阅读(100) 评论(0) 推荐(0)
摘要: import docx2txt import fitz import docx from docx.oxml import parse_xml def get_doc_content(filepath): """获取word文本内容""" try: doc = docx.Document(filep 阅读全文
posted @ 2025-01-22 11:41 二月雪 阅读(97) 评论(0) 推荐(0)
摘要: 垃圾回收机制 1 引用计数机制: 每个对象有一个整型的引用计数属性。用于记录对象被引用的次数。 2 标记-清除: 标记阶段。将所有的对象看成图的节点,根据对象的引用关系构造图结构。从图的根节点遍历所有的对象,所有访问到的对象被打上标记,表明对象是“可达”的。 清除阶段。遍历所有对象,如果发现某个对象 阅读全文
posted @ 2025-01-16 09:43 二月雪 阅读(8) 评论(0) 推荐(0)
摘要: 代码 import os from docx import Document from docx.shared import Inches # 将图片插入word表格 def insert_signature_in_table(doc, search_text, image_path, width= 阅读全文
posted @ 2025-01-13 15:15 二月雪 阅读(67) 评论(0) 推荐(0)
摘要: django.db.utils.OperationalError: (2026, 'TLS/SSL error: Server certificate validation failed. A certificate chain processed, but terminated in a root 阅读全文
posted @ 2025-01-13 14:28 二月雪 阅读(118) 评论(0) 推荐(0)
摘要: pip install pdfkit import pdfkit import os def html_to_pdf(content_html, save_path): """html转pdf,save_path为pdf绝对路径""" os.makedirs(os.path.dirname(save 阅读全文
posted @ 2025-01-11 10:43 二月雪 阅读(80) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 11 下一页