摘要:
# 数据结构与算法 # 基本数据结构 数据结构是指数据元素的集合及元素间的相互关系和构造方法。 - 元素之间的相互关系是数据的逻辑结构- 数据元素及元素之间的关系的存储成为存储结构(或物理结构)。 –树结构 <img src="https://img-blog.csdnimg.cn/20201206 阅读全文
posted @ 2020-12-25 15:26
不要摸我的腰
阅读(63)
评论(0)
推荐(0)
摘要:
C# 下载文件并显示进度等信息 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; 阅读全文
posted @ 2020-12-25 15:10
不要摸我的腰
阅读(741)
评论(0)
推荐(0)
摘要:
C# 创建以及修改Excel 添加引用 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsof 阅读全文
posted @ 2020-12-25 15:09
不要摸我的腰
阅读(491)
评论(0)
推荐(0)
摘要:
C# FileSystemWatcher FileSystemWatcher 常用于文件系统变更的监控,可以监视一个文件夹,当被监视的文件夹发生修改后,大概会触发以下函数: Created: 当新建文件或者文件夹1. Changed:当文件或者文件夹已经完成修改1. Renamed:当文件或者文件夹 阅读全文
posted @ 2020-12-25 15:08
不要摸我的腰
阅读(539)
评论(0)
推荐(0)
摘要:
C# 获取dll的版本信息 1 反射 只能获得C#的,不能反射C++的 Assembly assembly = Assembly.LoadFile(filepath); AssemblyName name= assembly.GetName(); Console.WriteLine(name.Ver 阅读全文
posted @ 2020-12-25 15:07
不要摸我的腰
阅读(1188)
评论(0)
推荐(0)
摘要:
fastapi 重定向 使用 starlette 的RedirectResponse import logging from fastapi import FastAPI from starlette.responses import RedirectResponse from starlette. 阅读全文
posted @ 2020-12-25 15:06
不要摸我的腰
阅读(2285)
评论(0)
推荐(0)
摘要:
fastapi 设置docs不显示某个接口的说明 只需要设置include_in_schema = False from typing import List from starlette.responses import RedirectResponse from fastapi import D 阅读全文
posted @ 2020-12-25 15:05
不要摸我的腰
阅读(674)
评论(0)
推荐(0)
摘要:
git 查看分支的创建人 将branch_A 替换成你想查看的分支的名字 阅读全文
posted @ 2020-12-25 15:04
不要摸我的腰
阅读(3208)
评论(0)
推荐(0)
摘要:
k8s pv & pvc https://bbs.huaweicloud.com/blogs/181038 https://blog.csdn.net/qianggezhishen/article/details/80762119 阅读全文
posted @ 2020-12-25 15:03
不要摸我的腰
阅读(76)
评论(0)
推荐(0)
摘要:
k8s 节点扩容 对于已经存在的集群,想要扩容,将一个新的node假如集群需要在master上运行以下命令,生成token sudo kubeadm token create --print-join-command 然后在想要假如的node上运行 sudo kubeadm join 假如新加入的n 阅读全文
posted @ 2020-12-25 15:02
不要摸我的腰
阅读(2646)
评论(0)
推荐(0)
摘要:
python mongoengine高级用法 查询 for post in Post.objects(tags='mongodb'): print(post.title) num_posts = Post.objects(tags='mongodb').count() print('Found {} 阅读全文
posted @ 2020-12-25 15:01
不要摸我的腰
阅读(323)
评论(0)
推荐(0)
摘要:
python enum 判断key 或者value是否存在 https://www.cnblogs.com/ibingshan/p/10303794.html from enum import Enum class testEnum(int,Enum): key1 = 0 key2 = 1 "key 阅读全文
posted @ 2020-12-25 15:00
不要摸我的腰
阅读(908)
评论(0)
推荐(0)
摘要:
python fabric cd 保持会话 实际使用过程中我们经常会先cd到某个路径再执行命令,本例以fabric 2.4 为例 from fabric import Connection conn = Connection(host=HOST_NAME, user=USER_NAME, conne 阅读全文
posted @ 2020-12-25 14:59
不要摸我的腰
阅读(121)
评论(0)
推荐(0)
摘要:
python fabric 该神器可以完成远程登录linux系统,并执行脚本等功能 安装 pip install fabric 使用 通过fabric.Connection方法连接服务器: conn = fabric.Connection(host , user = ‘root’,port = 22 阅读全文
posted @ 2020-12-25 14:58
不要摸我的腰
阅读(236)
评论(0)
推荐(0)
摘要:
python mongoengine 实例讲解 mogoengine是实现mogodb的ORM 1 安装 pip install mongoengine 2 连接(以本地连接为例)其中tumblelog是数据库名称 from mongoengine import * connect('tumblel 阅读全文
posted @ 2020-12-25 14:57
不要摸我的腰
阅读(242)
评论(0)
推荐(0)
摘要:
python watchdog 文件监控 安装 pip install watchdog demo import sys import time import logging from watchdog.observers import Observer from watchdog.events i 阅读全文
posted @ 2020-12-25 14:56
不要摸我的腰
阅读(1628)
评论(0)
推荐(0)
摘要:
python 异步框架FastAPI demo 时间不够,先上demo,回头补上该牛叉框架的详解,真香系列,flask不想再用了 model.py from sqlalchemy import Column,String,Boolean,ForeignKey,Integer,DateTime,Dat 阅读全文
posted @ 2020-12-25 14:55
不要摸我的腰
阅读(960)
评论(0)
推荐(0)
摘要:
python 操作redis redis类型 string- list- set- zset- hash 需要注意的是连接redis时需要设置decode_responses=True,否则取出来的数据将会是byte类型 一、字符串 string SET: 为指定的键(key)设置值(value), 阅读全文
posted @ 2020-12-25 14:54
不要摸我的腰
阅读(175)
评论(0)
推荐(0)
摘要:
python根据对象的字段值对列表进行排序 对象按照某个属性值进行排序需要用到python的高阶函数:lambda表达式, 其中reverse代表是否反向排序 class test(object): def __init__(self,free,cap,name): self.free=free s 阅读全文
posted @ 2020-12-25 14:53
不要摸我的腰
阅读(1460)
评论(0)
推荐(0)
摘要:
ubuntu 添加admin 用户 1 添加用户 sudo adduser username 2 根据提示设置密码就行 3 将用户添加到admin组 sudo usermod -aG sudo username 阅读全文
posted @ 2020-12-25 14:52
不要摸我的腰
阅读(560)
评论(0)
推荐(0)
摘要:
visual studio build events 文件夹拷贝 点击Edit Post-build 点击Macros,查看系统变量 实现文件夹copy: start xcopy /S /I /Q /F /E /Y /R "$(ProjectDir)AutoEmailTemplate" "$(Tar 阅读全文
posted @ 2020-12-25 14:51
不要摸我的腰
阅读(193)
评论(0)
推荐(0)
摘要:
使用war包部署安装jenkins https://www.blazemeter.com/blog/how-to-install-jenkins-with-a-war-file 1 通过[http://mirrors.jenkins.io/war-stable/latest/jenkins.war] 阅读全文
posted @ 2020-12-25 14:50
不要摸我的腰
阅读(298)
评论(0)
推荐(0)

浙公网安备 33010602011771号