我的编程之路

django templatetags得使用
1.正则表达式 \blog\home\templatetags\comment_tags.py @register.filter(name='regexp') def regexp(value): # 分割获取第一个url catalog_list = re.c...
阅读全文 »python对word、excel和ppt操作
1.word from docx import Document # -*- coding: utf-8 -*- import os from docx import Document import win32com.client import datetime from...
阅读全文 »AID Learning
1.开启ssh 设置root密码 passwd 第一步:进入etc>ssh>sshd_config,点击进入,改变IP地址为0.0.0.0 vim /etc/ssh/sshd_config 第二步:启动ssh,/etc/init.d/ssh s...
阅读全文 »python句柄操作(后台)
1.根据标题获取句柄 # 根据句柄获取线程和pid #根据pid停止程序 import win32gui import time import os import win32process main_hwnd = win32gui.FindWindow(None, "屏幕截图") ...
阅读全文 »<p id="-ckeditor-id_content-">使用 CKEditor 配置评论区富文本编辑器</p>
在 Web 应用的评论区中集成富文本编辑器可以极大地提升用户体验。CKEditor 是一款成熟且可扩展的所见即所得编辑器,以下将以 id_content 为目标元素,介绍如何一步步集成并增强 CKEditor 功能。 🧩 基本集成 首先确保页面已正确引入 CKEditor 核心脚本,并准备好...
阅读全文 »