摘要: 将大佬的博客整理成相关目录。查找方便 go语言安装及介绍 go语言环境搭建 go语言基础之变量和常量 go语言基础之基本数据类型 go语言基础之运算符 go语言基础之流程控制 Go语言fmt.Printf使用指南 Go语言基础之数组 Go语言基础之切片 Go语言基础之map Go语言基础之函数 Go 阅读全文
posted @ 2023-02-03 11:55 一石数字欠我15w!!! 阅读(120) 评论(0) 推荐(1) 编辑
摘要: 九月份开始,半年内搞定运维,博客会慢慢的更新,vim编辑器,Nginx配置文件优化,Linux命名 运维基础 运维基础-Linux发展史、安装、基本操作 运维基础-用户和组管理 运维基础-文件权限管理 运维基础-进程管理 运维基础-IO 管道 运维基础-查找压缩 系统管理 系统管理-网络管理 系统管 阅读全文
posted @ 2018-08-21 10:02 一石数字欠我15w!!! 阅读(2021) 评论(2) 推荐(1) 编辑
摘要: 查询目录 一,硬件 十一,数据库 二,Linux基础 十二,前端 三,python基础 十三,Django 四,python文件处理 十四,flask 五,函数 十五,版本控制-Git 六,模块和包 十六,缓存 七,面向对象 十七,爬虫 八,异常处理 十八,项目 九,网络编程 十九,源码解读 十,进 阅读全文
posted @ 2018-01-20 12:04 一石数字欠我15w!!! 阅读(6630) 评论(12) 推荐(9) 编辑
摘要: 安装 先决条件 确保已安装 Python 3.8+。 通过 pip 安装 使用 pip 安装 GraphRag-API: pip install graphrag_api 从源码安装 克隆源码库: git clone https://github.com/nightzjp/graphrag_api 阅读全文
posted @ 2024-08-07 14:06 一石数字欠我15w!!! 阅读(38) 评论(0) 推荐(0) 编辑
摘要: """ 参考:https://microsoft.github.io/graphrag/posts/get_started/ 1. 初始化家目录:python -m graphrag.index --init --root ./ragtest 2. 初始化索引:python -m graphrag. 阅读全文
posted @ 2024-07-30 16:43 一石数字欠我15w!!! 阅读(31) 评论(0) 推荐(0) 编辑
摘要: import os.path import cv2 import requests import numpy as np from ultralytics.utils import yaml_load from ultralytics.utils.checks import check_yaml c 阅读全文
posted @ 2024-07-09 10:13 一石数字欠我15w!!! 阅读(28) 评论(0) 推荐(1) 编辑
摘要: async def text_audio(text, audio_name): tts = edge_tts.Communicate( text=text, voice="zh-CN-XiaoxiaoNeural") await tts.save(audio_name) audio_name = " 阅读全文
posted @ 2024-06-13 11:32 一石数字欠我15w!!! 阅读(11) 评论(0) 推荐(0) 编辑
摘要: """ 多圈电机转动模式1 """ def decimal_to_hex_bytes(decimal_number, byte_size): # 检查字节大小参数的有效性 valid_sizes = {"int8": 1, "int16": 2, "int32": 4, "int64": 8} if 阅读全文
posted @ 2024-05-25 11:45 一石数字欠我15w!!! 阅读(26) 评论(0) 推荐(0) 编辑
摘要: import threading from datetime import datetime from peewee import Model, PostgresqlDatabase, AutoField, DateTimeField from playhouse.shortcuts import 阅读全文
posted @ 2024-01-08 09:53 一石数字欠我15w!!! 阅读(10) 评论(0) 推荐(0) 编辑
摘要: import asyncio import aioredis from config.env_config import REDIS_URL class RedisClient: def __init__(self, url, decode_responses=True, max_connectio 阅读全文
posted @ 2023-12-25 19:48 一石数字欠我15w!!! 阅读(8) 评论(0) 推荐(0) 编辑
摘要: package main import "fmt" const ( defaultName string = "张建平" defaultAge int = 27 defaultHigh int = 175 ) type User struct { Name string Age int High i 阅读全文
posted @ 2023-06-29 22:58 一石数字欠我15w!!! 阅读(7) 评论(0) 推荐(0) 编辑
摘要: version: "3" services: halo: image: halohub/halo:2.6 container_name: halo restart: on-failure:3 depends_on: halodb: condition: service_healthy network 阅读全文
posted @ 2023-06-08 18:14 一石数字欠我15w!!! 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 目前就想到了这两种 drf框架返回接口数据的时候返回count接口数据随着数据的增多查询缓慢! 1. 不返回总数据,前端采用下拉刷新方式获取 2. 主键采用int类型,每次返回最后一条数据id数即为总数(first().id - last().id + 1) from collections imp 阅读全文
posted @ 2023-05-29 17:37 一石数字欠我15w!!! 阅读(69) 评论(2) 推荐(0) 编辑
摘要: import cv2 from func_timeout import func_set_timeout, exceptions def check_rtsp_stream(url): @func_set_timeout(2) def parse_rtsp_stream(rtsp_address): 阅读全文
posted @ 2023-04-28 14:58 一石数字欠我15w!!! 阅读(456) 评论(3) 推荐(1) 编辑
摘要: import os import re import netifaces import subprocess class NetWorkConfig: def __init__(self): pass @staticmethod def check_network_isvalid(ip, netma 阅读全文
posted @ 2023-04-25 14:08 一石数字欠我15w!!! 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 效果图↓ 需要配置↓ index.html↓ <!DOCTYPE html> {% load i18n static %} {% load simpletags %} {% load customtags %} {% get_current_language as LANGUAGE_CODE %}{ 阅读全文
posted @ 2023-04-25 09:51 一石数字欠我15w!!! 阅读(517) 评论(1) 推荐(0) 编辑
摘要: 起源于一个比较奇葩的需求,默认的celery无法实现: 需要用户输入一个开始时间,结束时间,以及时间间隔,需要在该时间段内指定间隔执行 import datetime def task(start: datetime.datetime, end: datetime.datetime, interva 阅读全文
posted @ 2023-04-20 18:21 一石数字欠我15w!!! 阅读(119) 评论(0) 推荐(0) 编辑
摘要: from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.db import mode 阅读全文
posted @ 2023-04-07 15:38 一石数字欠我15w!!! 阅读(39) 评论(0) 推荐(0) 编辑