怪奇物语

怪奇物语

首页 新随笔 联系 管理
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页

2023年3月14日 #

摘要: golang导包 导包 同一个项目下的导包 文件的目录结构 . ├── README.md ├── go.mod ├── main.go ├── mymath │ ├── multip.go │ └── sum.go ├── tree.txt └── utilset └── hello.go 3 d 阅读全文
posted @ 2023-03-14 22:49 超级无敌美少男战士 阅读(25) 评论(0) 推荐(0)

2023年3月12日 #

摘要: oop fp initialState从头到尾都没有变化 fp更喜欢递归代替循环 pure function side effect 使用递归实现for循环 递归实现数组的累加 const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; function sumArr( 阅读全文
posted @ 2023-03-12 22:45 超级无敌美少男战士 阅读(21) 评论(0) 推荐(0)

摘要: 在线运行lua的luatos 变量 a是本地变量 b是全局变量 nil 未赋值的变量c,其值是nil 批量赋值 16进制和科学计数法 字符串支持双引号和单引号 原始字符串 [[ ]]中的字符串保持原样 字符串拼接,使用两个点 字符串转数字,数字转字符串 tostring tonumber 'abc' 阅读全文
posted @ 2023-03-12 22:10 超级无敌美少男战士 阅读(67) 评论(0) 推荐(0)

摘要: vscode中的live sass complier插件 文件分离 第四行,导入_header.sass文件 mixin 将重复使用的flexCenter作为一个mixin抽离出来,类似函数 一到五行,mixin;第十行,使用 mixin传参 $direction 继承extend 继承之后可以重写 阅读全文
posted @ 2023-03-12 17:06 超级无敌美少男战士 阅读(20) 评论(0) 推荐(0)

2023年3月11日 #

摘要: gitcode上传代码之后的一些命令 Git global setup git config --global user.name "小怪兽" git config --global user.email "xxxxx@example.com" Create a new repository git 阅读全文
posted @ 2023-03-11 16:39 超级无敌美少男战士 阅读(31) 评论(0) 推荐(0)

摘要: macOS 终端 (Terminal) 历史命令查询 默认显示部分命令行 history 只显示了部分命令行。 显示全部命令行 history 0 显示特定行开始的命令行 history 660 终端会打印出 660~最近一次输入的命令行。 阅读全文
posted @ 2023-03-11 16:10 超级无敌美少男战士 阅读(1175) 评论(0) 推荐(0)

摘要: sqlite系统命令 sqlite test.db 创建 test.db 文件并进入 sqlite3 sqlite>.database 查看数据库文件信息命令 (注意命令前带字符'.') sqlite>.schema 查看所有表的创建语句: sqlite>.schema table_name 查看指 阅读全文
posted @ 2023-03-11 16:06 超级无敌美少男战士 阅读(2019) 评论(0) 推荐(1)

摘要: 进入 sqlite3 命令行模式 安装好 sqlite3 之后,在 linux 命令行中输入 sqlite3 , 进入 sqlite3 的命令行模式。 root@172:/# sqlite3 SQLite version 3.23.1 2018-04-10 17:39:29 Enter ".help 阅读全文
posted @ 2023-03-11 15:32 超级无敌美少男战士 阅读(586) 评论(0) 推荐(0)

摘要: 创建model文件 from sqlalchemy import create_engine,Column,String,Integer from sqlalchemy.ext.declarative import declarative_base engine = create_engine("s 阅读全文
posted @ 2023-03-11 14:54 超级无敌美少男战士 阅读(414) 评论(0) 推荐(0)

2023年3月10日 #

摘要: 1. 协程 在定义函数的时候在前面加上 async 修饰,在耗时任务那行代码使用 await 修饰,这时候调用函数,它就会返回一个协程(coroutine)对象,然后调用 asyncio.run() 把协程对象丢进去就能执行了 import asyncio import time async def 阅读全文
posted @ 2023-03-10 07:11 超级无敌美少男战士 阅读(166) 评论(0) 推荐(0)

2023年3月5日 #

摘要: /admin-one-vue-tailwind-master/index.html <!DOCTYPE html> <html lang="zh"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="I 阅读全文
posted @ 2023-03-05 14:44 超级无敌美少男战士 阅读(114) 评论(0) 推荐(0)

2023年3月4日 #

摘要: template tag <template> <button :class="classes" > <slot :iconSizeClasses="iconSizeClasses" /> </button> </template> script tag <script setup> import 阅读全文
posted @ 2023-03-04 08:55 超级无敌美少男战士 阅读(159) 评论(0) 推荐(0)

摘要: 问题 git push origin master 行不通 然后就是直接git push,还是行不通,但是提示让我使用git push --set-upstream oring main,然后就是ok了 阅读全文
posted @ 2023-03-04 00:11 超级无敌美少男战士 阅读(12) 评论(0) 推荐(0)

2023年3月3日 #

摘要: gitcode ssh 密钥配对 查看现有的 SSH 密钥 如果您已有 SSH 密钥,则可以使用它们来与 GitCode 的代码库进行连接。 默认情况下,Linux 和 macOS 系统上的 SSH 密钥存储在用户的主目录中的.ssh/子目录中,下表包括每种 SSH 密钥算法的默认文件名: 算法公钥 阅读全文
posted @ 2023-03-03 23:51 超级无敌美少男战士 阅读(373) 评论(0) 推荐(0)

摘要: mockjs vue learn /Users/song/Downloads/vue3_demo_mockjs-master/__mock_learn/mock_learn/index.html <!DOCTYPE html> <html lang="en"> <head> <meta charse 阅读全文
posted @ 2023-03-03 23:34 超级无敌美少男战士 阅读(25) 评论(0) 推荐(0)

2023年3月2日 #

摘要: E:\song2\paddler_ocr\paddleocr_learn00\le00.py from paddleocr import PaddleOCR # 2. 声明PaddleOCR类 ocr = PaddleOCR() img_path = './12.jpg' # 3. 执行预测 res 阅读全文
posted @ 2023-03-02 19:34 超级无敌美少男战士 阅读(373) 评论(0) 推荐(0)

摘要: opencv 绘图 参数说明 绘制形状的函数有一些共同的参数: img:要绘制形状的图片 color:绘制的颜色 彩色图就传入 BGR 的一组值,如蓝色就是 (255,0,0) 灰度图,传入一个灰度值就行 thickness:线宽,默认为 1;对于矩形 / 圆之类的封闭形状而言,传入 - 1 表示填 阅读全文
posted @ 2023-03-02 17:34 超级无敌美少男战士 阅读(165) 评论(0) 推荐(0)

摘要: 形态学操作 形态学操作就是基于形状的一系列图像处理操作。 OpenCV 为进行图像的形态学变换提供了快捷、方便的函数。 最基本的形态学操作有二种,他们是:膨胀与腐蚀 (Dilation 与 Erosion)。 膨胀与腐蚀能实现多种多样的功能,主要如下: 消除噪声 分割 (isolate) 出独立的图 阅读全文
posted @ 2023-03-02 17:10 超级无敌美少男战士 阅读(838) 评论(0) 推荐(0)

2023年3月1日 #

摘要: 代码 <!DOCTYPE html> <html lang="en"> <head> <title>three.js webgl - instancing - raycast</title> <meta charset="utf-8" /> <meta name="viewport" content 阅读全文
posted @ 2023-03-01 16:19 超级无敌美少男战士 阅读(543) 评论(0) 推荐(0)

2023年2月28日 #

摘要: ![image](https://img2023.cnblogs.com/blog/1222814/202302/1222814-20230228110436884-544023606.png) 阅读全文
posted @ 2023-02-28 11:04 超级无敌美少男战士 阅读(145) 评论(0) 推荐(0)

摘要: ![image](https://img2023.cnblogs.com/blog/1222814/202302/1222814-20230228110131068-148558408.png) 阅读全文
posted @ 2023-02-28 11:02 超级无敌美少男战士 阅读(23) 评论(0) 推荐(0)

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 阅读全文
posted @ 2023-02-27 14:16 超级无敌美少男战士 阅读(24) 评论(0) 推荐(0)

2023年2月22日 #

摘要: https://cn.vuejs.org/guide/typescript/composition-api.html 对于运行时声明,我们可以使用 PropType 工具类型: import type { PropType } from 'vue' const props = defineProps 阅读全文
posted @ 2023-02-22 10:00 超级无敌美少男战士 阅读(56) 评论(0) 推荐(0)

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 阅读全文
posted @ 2023-02-20 22:34 超级无敌美少男战士 阅读(44) 评论(0) 推荐(0)

摘要: 报错 in await_only raise exc.MissingGreenlet( sqlalchemy.exc.MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO a 阅读全文
posted @ 2023-02-20 15:48 超级无敌美少男战士 阅读(2046) 评论(1) 推荐(1)

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() 阅读全文
posted @ 2023-02-19 21:41 超级无敌美少男战士 阅读(57) 评论(0) 推荐(0)

摘要: /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: 阅读全文
posted @ 2023-02-19 12:08 超级无敌美少男战士 阅读(268) 评论(0) 推荐(0)

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 阅读全文
posted @ 2023-02-18 20:32 超级无敌美少男战士 阅读(147) 评论(0) 推荐(0)

摘要: /Users/song/codelearn/opencv_face_recognition_learn/face_dectector/opencv/06检测多个.py # 导入cv模块 import cv2 as cv # 检测函数 def face_detect_demo(): gary = cv 阅读全文
posted @ 2023-02-18 10:54 超级无敌美少男战士 阅读(112) 评论(0) 推荐(0)

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 阅读全文
posted @ 2023-02-15 17:21 超级无敌美少男战士 阅读(39) 评论(0) 推荐(0)

摘要: 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_ 阅读全文
posted @ 2023-02-15 17:13 超级无敌美少男战士 阅读(65) 评论(0) 推荐(0)

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 阅读全文
posted @ 2023-02-12 20:53 超级无敌美少男战士 阅读(160) 评论(0) 推荐(0)

摘要: /Users/song/Code/fastapi_docs_src_教程/fastapi/docs_src/request_forms_and_files/tutorial001.py from fastapi import FastAPI, File, Form, UploadFile app = 阅读全文
posted @ 2023-02-12 17:17 超级无敌美少男战士 阅读(82) 评论(0) 推荐(0)

摘要: /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 阅读全文
posted @ 2023-02-12 12:01 超级无敌美少男战士 阅读(22) 评论(0) 推荐(0)

摘要: /Users/song/Code/redis_learn/le00.py #!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import asyncio from redis import Redis,AuthenticationEr 阅读全文
posted @ 2023-02-12 11:53 超级无敌美少男战士 阅读(22) 评论(0) 推荐(0)

摘要: /Users/song/Code/sqlalchemy_mysql_learn00/python_sqlalchemy_mysql/query_table_data.py #!/usr/bin/env python3 # -*- coding:utf-8 -*- ''' @File : query_ 阅读全文
posted @ 2023-02-12 09:34 超级无敌美少男战士 阅读(22) 评论(0) 推荐(0)

2023年2月11日 #

摘要: 📟 Switch your input method through terminal. Contribute to daipeihust/im-select development by creat...... im-select Installation macOS Homebrew Run 阅读全文
posted @ 2023-02-11 10:36 超级无敌美少男战士 阅读(262) 评论(0) 推荐(0)

摘要: 数据库 以下是数据的一些基本内容 Q 什么是主从数据库 主从数据库就是把数据库架构分为主数据库和从数据库。 从数据库是主数据库的备份,以提高数据的安全性,不至于一个数据库崩掉而导致整个项目也运行不起来。可以有效的防止财产的损失。 一般从库只做查询操作,而主库则做更改操作,也就是所谓的读写分离。 Q 阅读全文
posted @ 2023-02-11 10:27 超级无敌美少男战士 阅读(32) 评论(0) 推荐(0)

摘要: vscode vim 插件官方说明 Input Method Disable input method when exiting Insert Mode. SettingDescriptionvim.autoSwitchInputMethod.enableBoolean denoting wheth 阅读全文
posted @ 2023-02-11 10:26 超级无敌美少男战士 阅读(143) 评论(0) 推荐(0)

摘要: sqlite tortoise crud from enum import IntEnum from tortoise import connections, fields, models from tortoise.expressions import F, Q, RawSQL, Subquery 阅读全文
posted @ 2023-02-11 07:56 超级无敌美少男战士 阅读(186) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页