展开
拓展 关闭
订阅号推广码
GitHub
视频
公告栏 关闭

随笔分类 -  后端

1 2 3 4 5 ··· 16 下一页
摘要:一些在下转换网站有时间限制,使用python转换 安装anaconda,安装依赖 C:\Users\dogle>activate env_dev1 (env_dev1) C:\Users\dogle>pip install moviepy WARNING: Ignoring invalid dist 阅读全文
posted @ 2024-11-27 15:08 DogLeftover 阅读(20) 评论(0) 推荐(0) 编辑
摘要:官网 安装 # 打开cmd C:\Users\ychen>pip install pyecharts Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Collecting pyecharts Downloading https: 阅读全文
posted @ 2024-05-06 10:56 DogLeftover 阅读(27) 评论(0) 推荐(0) 编辑
摘要:安装依赖库 pip install selenium 打开谷歌浏览器,搜索框输入如下,查看版本 chrome://version 下载驱动 解压后,将驱动放到python安装目录Scripts文件夹下 测试代码 from time import sleep from selenium import 阅读全文
posted @ 2024-04-19 22:28 DogLeftover 阅读(193) 评论(0) 推荐(0) 编辑
摘要:安装依赖 (C:\ProgramData\Anaconda3) C:\Users\ychen>pip install flask-migrate Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Collecting flask- 阅读全文
posted @ 2024-03-20 11:04 DogLeftover 阅读(38) 评论(0) 推荐(0) 编辑
摘要:创建表 app.py from flask import Flask, render_template from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) HOSTNAME = "127.0.0.1" PORT = 3306 U 阅读全文
posted @ 2024-03-20 09:58 DogLeftover 阅读(4) 评论(0) 推荐(0) 编辑
摘要:安装依赖 (C:\ProgramData\Anaconda3) C:\Users\ychen>pip install pymysql Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Requirement already sat 阅读全文
posted @ 2024-03-20 09:22 DogLeftover 阅读(77) 评论(0) 推荐(0) 编辑
摘要:控制语句 templates目录下新建control.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> {% if age>18 %} <di 阅读全文
posted @ 2024-03-19 16:33 DogLeftover 阅读(10) 评论(0) 推荐(0) 编辑
摘要:案例1 templates目录下新建filter.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> {{ user.username }}-{ 阅读全文
posted @ 2024-03-19 15:50 DogLeftover 阅读(8) 评论(0) 推荐(0) 编辑
摘要:url与视图的映射 指定url 指定url并指定参数类型 指定默认值 模板渲染 在templates目录下新建html,返回html页面 在templates目录下新建html,接收参数 向指定html传入参数 模板访问对象属性 app.py index.html 阅读全文
posted @ 2024-03-19 15:06 DogLeftover 阅读(2) 评论(0) 推荐(0) 编辑
摘要:安装依赖 (C:\ProgramData\Anaconda3) C:\Users\ychen>pip install flask==2.0.1 Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Collecting flask== 阅读全文
posted @ 2024-03-19 14:52 DogLeftover 阅读(31) 评论(0) 推荐(0) 编辑
摘要:案例1 github地址 效果,打开音频文件,运行,识别文字 功能强大,但不推荐使用,非常消耗性能和资源 具体步骤 点击查看详情 # 拉取到本地 git clone https://github.com/YaoFANGUK/video-subtitle-generator.git # 打开终端,进入 阅读全文
posted @ 2024-03-02 20:42 DogLeftover 阅读(78) 评论(0) 推荐(0) 编辑
摘要:安装依赖 pip install ffmpy3 报错1 点击查看详情 目录已存在,即将保存! ffmpeg -i C:\work\brucepk\test\7251538642030611746.mp4 -vn -ar 44100 -ac 2 -ab 192 -f wav C:\work\bruce 阅读全文
posted @ 2024-03-02 18:10 DogLeftover 阅读(55) 评论(0) 推荐(0) 编辑
摘要:准备csv文件 创建表 使用ssh工具登录虚拟机服务器,将user.csv上传到服务器,导入mysql [root@master data]# pwd /home/data [root@master data]# ls user.csv # 开始导入 [root@master data]# mysq 阅读全文
posted @ 2023-12-07 11:57 DogLeftover 阅读(859) 评论(0) 推荐(0) 编辑
摘要:本地导入本地 创建好数据库,打开cmd,登录mysql,切换数据库,执行命令导入,source [sql文件路径] C:\Users\ychen>mysql -u root -p Enter password: ******** Welcome to the MySQL monitor. Comma 阅读全文
posted @ 2023-12-06 18:56 DogLeftover 阅读(94) 评论(0) 推荐(0) 编辑
摘要:统计字符串中的字母、空格、数字、特殊字符 import java.util.Scanner; public class test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Syste 阅读全文
posted @ 2023-11-14 14:47 DogLeftover 阅读(17) 评论(0) 推荐(0) 编辑
摘要:将百度页面保存到本地 from urllib.request import urlopen url = "http://www.baidu.com/" r = urlopen(url) b = r.read().decode('utf-8') with open("a.html",mode="w", 阅读全文
posted @ 2023-11-10 15:12 DogLeftover 阅读(31) 评论(0) 推荐(0) 编辑
摘要:打印等腰三角形 第1次推导 public class test { public static void main(String[] args) { // 行数 int a = 3; System.out.println(); System.out.print(" "); System.out.pr 阅读全文
posted @ 2023-09-29 14:15 DogLeftover 阅读(19) 评论(0) 推荐(0) 编辑
摘要:代码案例 import java.io.*; public class test { public static void main(String[] args) throws IOException { // 追加如下内容 String writeContext = "SET NAMES utf8 阅读全文
posted @ 2022-11-09 15:47 DogLeftover 阅读(90) 评论(0) 推荐(0) 编辑
摘要:查看config 包下的settings.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3', } } 项目根路径下会自动生成db.sqlite3 阅读全文
posted @ 2022-10-27 13:51 DogLeftover 阅读(52) 评论(0) 推荐(0) 编辑
摘要:构建项目 mkdir bysms && cd bysms django-admin startproject config . config 包下的settings.py中编写如下 ALLOWED_HOSTS = ['127.0.0.1', 'localhost'] 创建项目app # 终端进入项目 阅读全文
posted @ 2022-10-27 13:24 DogLeftover 阅读(27) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 16 下一页
点击右上角即可分享
微信分享提示