摘要:
形态学操作 形态学操作就是基于形状的一系列图像处理操作。 OpenCV 为进行图像的形态学变换提供了快捷、方便的函数。 最基本的形态学操作有二种,他们是:膨胀与腐蚀 (Dilation 与 Erosion)。 膨胀与腐蚀能实现多种多样的功能,主要如下: 消除噪声 分割 (isolate) 出独立的图 阅读全文
2023年3月2日 #
2023年3月1日 #
摘要:
代码 <!DOCTYPE html> <html lang="en"> <head> <title>three.js webgl - instancing - raycast</title> <meta charset="utf-8" /> <meta name="viewport" content 阅读全文
2023年2月28日 #
摘要:
 阅读全文
摘要:
 阅读全文
2023年2月27日 #
摘要:
E:\song2\sqlalchemy_learn\python_sqlalchemy_mysql-master\add_table_data.py #!/usr/bin/env python3 # -*- coding:utf-8 -*- ''' @File : add_table_data.py 阅读全文
2023年2月22日 #
摘要:
https://cn.vuejs.org/guide/typescript/composition-api.html 对于运行时声明,我们可以使用 PropType 工具类型: import type { PropType } from 'vue' const props = defineProps 阅读全文
2023年2月20日 #
摘要:
/Users/song/codelearn/Querying With Dates in Flask-SQLAlchemy/datequeries/app.py from datetime import date, datetime, timedelta from faker import Fake 阅读全文
摘要:
报错 in await_only raise exc.MissingGreenlet( sqlalchemy.exc.MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO a 阅读全文
2023年2月19日 #
摘要:
sqlalchemy_one_to_many_relationship-main/delete.py from main import Post,User,session print(session.query(Post).all()) print(session.query(User).all() 阅读全文
摘要:
/Users/codelearn/fastapi-tutorial-fastapi_with_async_sqlalchemy/run.py # uvicorn backend.app.main:app --host 127.0.0.1 --port 8000 # uvicorn src.main: 阅读全文
2023年2月18日 #
摘要:
/Users//codelearn/fastapi_sqlalchemy_mysql_01/init_test_data.py #!/usr/bin/env python3 # -*- coding: utf-8 -*- import asyncio from email_validator imp 阅读全文
摘要:
/Users/song/codelearn/opencv_face_recognition_learn/face_dectector/opencv/06检测多个.py # 导入cv模块 import cv2 as cv # 检测函数 def face_detect_demo(): gary = cv 阅读全文
2023年2月15日 #
摘要:
E:\song2\树莓派视频流\flask_opencv_video_stream\flask-video-streaming\app.py #!/usr/bin/env python from importlib import import_module # import os from flas 阅读全文
摘要:
E:\song\Flask-SocketIO-Chat-master\run.py #!/bin/env python from app import create_app, socketio app = create_app(debug=False) if __name__ == '__main_ 阅读全文
2023年2月12日 #
摘要:
python fastapi schema和model的区别 To avoid confusion between the SQLAlchemy models and the Pydantic models, we will have the file model...... 来自 fastapi 阅读全文
摘要:
/Users/song/Code/fastapi_docs_src_教程/fastapi/docs_src/request_forms_and_files/tutorial001.py from fastapi import FastAPI, File, Form, UploadFile app = 阅读全文
摘要:
/Users/song/Code/script_python/code2md/main.py #!/usr/bin/env python3 import os import re import shutil import easygui from easygui import * from path 阅读全文
摘要:
/Users/song/Code/redis_learn/le00.py #!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import asyncio from redis import Redis,AuthenticationEr 阅读全文
摘要:
/Users/song/Code/sqlalchemy_mysql_learn00/python_sqlalchemy_mysql/query_table_data.py #!/usr/bin/env python3 # -*- coding:utf-8 -*- ''' @File : query_ 阅读全文
2023年2月11日 #
摘要:
📟 Switch your input method through terminal. Contribute to daipeihust/im-select development by creat...... im-select Installation macOS Homebrew Run 阅读全文
摘要:
数据库 以下是数据的一些基本内容 Q 什么是主从数据库 主从数据库就是把数据库架构分为主数据库和从数据库。 从数据库是主数据库的备份,以提高数据的安全性,不至于一个数据库崩掉而导致整个项目也运行不起来。可以有效的防止财产的损失。 一般从库只做查询操作,而主库则做更改操作,也就是所谓的读写分离。 Q 阅读全文
摘要:
vscode vim 插件官方说明 Input Method Disable input method when exiting Insert Mode. SettingDescriptionvim.autoSwitchInputMethod.enableBoolean denoting wheth 阅读全文
摘要:
sqlite tortoise crud from enum import IntEnum from tortoise import connections, fields, models from tortoise.expressions import F, Q, RawSQL, Subquery 阅读全文
摘要:
tortoise-orm在fastapi中的使用 """ Tortoise ORM """ from tortoise.contrib.fastapi import register_tortoise from tortoise.contrib.pydantic import pydantic_mo 阅读全文
2023年2月10日 #
摘要:
fastapi_sqlalchemy """ SQLAlchemy """ # SQlAlchemy from sqlalchemy import Column, Integer, String, DateTime, func, select from sqlalchemy.orm import d 阅读全文
摘要:
/Users/song/Code/sqlalchemy_learn_20230210/le00.py from sqlalchemy import Column, String, create_engine,Integer from sqlalchemy.orm import sessionmake 阅读全文
2023年2月9日 #
摘要:
/Users/song/Code/threejs_learn_vanilla_class_singleton/threejs_learn_vanilla_ts_class_singleton/src/main.ts import "./style.css"; import Base from "./ 阅读全文
摘要:
/Users/song/Code/threejs_learn_vanilla_class_singleton/threejs_learn_vanilla_ts_class_singleton/src/threejs_全局事件管理/Base.ts import { Light, Object3D, S 阅读全文
2023年2月4日 #
摘要:
改键图 大小写切换键,基本用不到,所以改成ctrl键,这个和hhkb的设计正好 原来的control键,可改可不改,其实保留更好,这样在mac中使用快捷键比较方便,如果有经常使用大写字母的场景,可以改成大小写切换键 然后就是option键和command键互换,在windows的键盘上就是alt键和 阅读全文
2023年2月3日 #
摘要:
  ![ 阅读全文
2023年2月1日 #
摘要:
setting.json { // // yapf // "python.formatting.provider": "yapf", "python.formatting.yapfArgs": ["--style", "{column_limit: 150}"], // autopep8 "pyth 阅读全文
摘要:
socketio http 测试 vite vanilla创建项目 import { io } from "socket.io-client"; import axios from "axios"; const axiosInstance = axios.create({ baseURL: "htt 阅读全文
2023年1月31日 #
摘要:
D:\code3\socketio_express_mongodb\ExpressJS-SocketIO-Boilerplate\config.js /** * Web server port */ const SERVER_PORT = 3005; /** * Session settings * 阅读全文
2023年1月30日 #
摘要:
E:\song2\fastapi_socketio_chatroom\app.py # socketio import socketio # fastapi from fastapi import FastAPI, WebSocket, Request, WebSocketDisconnect fr 阅读全文
2023年1月29日 #
摘要:
socketio的小练习 服务端 # socketio import socketio # fastapi from fastapi import FastAPI, WebSocket, Request, WebSocketDisconnect from fastapi.responses impo 阅读全文
摘要:
代码 import socketio from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from fastapi.responses import RedirectResponse # app 阅读全文
2023年1月28日 #
摘要:
D:\code_gitee\fastapi-socketio-example-main\fastapi-socketio-example-main\app.py import os import pathlib import secrets import time from typing impor 阅读全文
2023年1月15日 #
摘要:
D:\code_gitee\flask_socketio_online-ping-demo-master\online-ping-demo-master\python3\app.py #!/usr/bin/python3 # -*- coding: utf-8 -*- from flask impo 阅读全文
摘要:
D:\code_gitee\html_crostest\htmo_crostest\index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <link rel="icon" type="image/svg 阅读全文
2023年1月14日 #
摘要:
D:\code_gitee\python_get_msedge_history\新建文件夹\cnblog2anki.py from base64 import encode import os import re import shutil import easygui import request 阅读全文