分类: 网站

3 篇文章

systemd自启任务
若要让 source ~/miio_venv/bin/activate && cd ~/miio_venv/temp/ && python main.py 这个命令在开机时于后台自动启动,可以采用以下几种方式。下面为你详细介绍常见的方法: 方法: 使用 systemd(适用于大多数基于systemd的Linux发行版…
wordpress XML转换为html
要实现将XML文档转换为HTML并提取特定内容,可以按照以下步骤编写Python程序: import xml.etree.ElementTree as ET import os import re from html import escape def sanitize_filename(title): """处理非法文件名字符并限制长度""" f…