2023年4月10日

摘要: python文本转语音库Pyttsx3: https://github.com/nateshmbhat/pyttsx3 Installation : pip install pyttsx3 Linux installation requirements : If you are on a linux 阅读全文
posted @ 2023-04-10 22:01 sdlyxyf 阅读(159) 评论(0) 推荐(0) 编辑

2023年4月7日

摘要: Git的使用 1. git配置 获取本机ssh key: ssh-keygen -t -C "<yourEmail@example.com>" 配置全局name和email: git config --global user.name "<yourName>" git config --global 阅读全文
posted @ 2023-04-07 16:38 sdlyxyf 阅读(13) 评论(0) 推荐(0) 编辑

2023年2月23日

摘要: pdf2docx:https://github.com/dothinking/pdf2docx 可将 PDF 转换成 docx 文件的 Python 库。 from pdf2docx import parse pdf_file = '/path/to/sample.pdf' docx_file = 阅读全文
posted @ 2023-02-23 20:47 sdlyxyf 阅读(165) 评论(0) 推荐(0) 编辑
摘要: schedule : https://github.com/dbader/schedule 该项目人性化的 API 设计,让开发者仅用几行代码就能轻松实现定时任务。它不依赖任何第三方库,全部代码也就一个文件 800 多行,拥有丰富的注释和单元测试,源码阅读起来十分轻松。 import schedul 阅读全文
posted @ 2023-02-23 20:39 sdlyxyf 阅读(41) 评论(0) 推荐(0) 编辑

2023年2月10日

摘要: Docker内容总结 目录 什么是Docker? Docker的应用场景有哪些? Docker的优点有哪些? Docker与虚拟机的区别是什么? Docker的三大核心是什么? 如何快速安装Docker? 如何修改Docker的存储位置? Docker镜像常用管理有哪些? 如何创建Docker容器? 阅读全文
posted @ 2023-02-10 09:52 sdlyxyf 阅读(34) 评论(0) 推荐(0) 编辑

2022年9月8日

摘要: 使用func_timeout设置函数超时退出,使用func_set_timeout装饰器和func_timeout方法 from func_timeout import func_set_timeout,exceptions.FunctionTimedOut import time @func_se 阅读全文
posted @ 2022-09-08 16:22 sdlyxyf 阅读(1003) 评论(0) 推荐(0) 编辑

2022年1月10日

摘要: django-simple-captcha是django验证码模块,非常方便易用。 1、环境的准备: 在django项目环境中安装:pip install django-simple-captcha django-simple-captcha官方文档地址:http://django-simple-c 阅读全文
posted @ 2022-01-10 14:43 sdlyxyf 阅读(759) 评论(0) 推荐(0) 编辑

2021年8月6日

摘要: 下载 layDate 后,将文件夹 laydate 整个放置在您的项目任意目录,使用时只需引入 laydate.js 即可。 详细的使用方法见:https://www.layui.com/laydate/ <javascript>//执行一个laydate实例,日期事件输入控件 laydate.re 阅读全文
posted @ 2021-08-06 14:23 sdlyxyf 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 解决django中的跨域问题: Django项目中出现跨域问题,用第三方包django-cors-headers来解决跨域问题。 安装:pip install django-cors-headers; 在settings.py 中的app选项中进行注册,INSTALLED_APPS = ['cors 阅读全文
posted @ 2021-08-06 14:16 sdlyxyf 阅读(248) 评论(0) 推荐(0) 编辑
摘要: ubuntu添加新硬盘,进行分区,并挂载到/home目录。 1、查看已有的磁盘,可以看到sdb还没有分区。 > sudo fdisk -l 可以看到各个硬盘的设备名,一般以sda、sdb、sdc命名,下面以/dev/sdb为例, 2、进入sdb进行分区 >sudo fdisk /dev/sdb 输入 阅读全文
posted @ 2021-08-06 14:15 sdlyxyf 阅读(4235) 评论(0) 推荐(0) 编辑

导航