- 博客(10)
- 收藏
- 关注
原创 python_audition面试笔记
Python_audition笔记with用法with的用法,上下文管理器。一般打开文件用,打开文件在进行读写时可能会出现异常状况,如果不用with自己要try,except,finally。with实现了finally中的f.close函数中*args,**kwargs含义:用来处理可变参数*args被打包成tuple**kwargs被打包成dictdef print_all(a,*args,**kwargs): print(a) if args:
2021-08-06 21:41:24
314
原创 MyBatis-Plus整合SpringBoot2
MyBatis-Plus整合SpringBootMyBatis-Plus(简称MP)是一个MyBatis的增强工具,在MyBatis的基础上只做增强不做改变,为简化开发,提高效率而生。 MyBatis-Plus整合SpringBoot 创建SpringBoot工程,添加依赖 <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="h
2021-06-22 19:17:00
205
原创 SpringBoot2学习笔记
SpringBoot2入门SpringBoot官方文档https://docs.spring.io/spring-boot/docs/current/reference/html/getting-started.html#getting-started.introducing-spring-bootpom文件 引入依赖<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org
2021-06-22 17:39:51
218
原创 python操作OpenCV学习笔记
opencv环境准备说明:opencv在3.4之后的版本某些算法收费,建议先使用3.4版本pip install opencv-python==3.4pip install opencv-contrib-python==3.4opencv图像基本操作数据读取-图像opencv读取的格式是BGRcv2.IMREAD_COLOR:彩色图像cv2.IMREAD_GRAYSCALE:灰度图像import cv2import numpy as npimport matplotl
2021-06-09 18:46:52
426
2
原创 Linux学习笔记
linux对用户和组的基本操作查看用户所属的组切换到当前用户,输入id命令即可添加用户amberli,并且为创建的用户指定所在的目录# adduser -d /usr/amberli -m amberli-d /usr/amberli 指定用户所在的目录给新添加用户amberli创建密码# passwd amberliChanging password for user amberli.New password: Retype new password: passwd
2021-06-08 15:46:39
162
原创 ElasticSearch入门学习笔记
本文参考优快云博主「巨輪」的原创文章进行学习后整理的笔记。 原文链接:https://blog.youkuaiyun.com/u011863024/article/details/115721328ElasticSearch是什么The ElasticSearch Stack, 包括Elasticsearch、Kibana、Beats和Logstash(也称为ELK Stack). 能够安全可靠的获取任何来源、任何格式的数据,然后实时地对数据进行搜索、分析和可视化。ElasticSearch,简称ES,E
2021-05-21 18:05:57
250
原创 linux对用户和组的基本操作
查看用户所属的组切换到当前用户,输入id命令即可添加用户amberli,并且为创建的用户指定所在的目录# adduser -d /usr/amberli -m amberli-d /usr/amberli 指定用户所在的目录给新添加用户amberli创建密码# passwd amberliChanging password for user amberli.New password: Retype new password: passwd: all authenti...
2021-05-20 16:52:47
139
原创 {“error“:“Content-Type header [application/x-www-form-urlencoded] is not supported“,“status“:406}
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}elasticsearch6用插件elasticsearch-head复合查询中put时报错:{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406} 解决方法:进入elas
2021-05-13 14:42:57
1359
1
原创 python中以json格式输出log日志
python中以json格式输出log日志import jsonimport loggingimport datetimeimport socketclass HostIp: host_name = None host_ip = None @classmethod def get_host_ip(cls): if not cls.host_name or not HostIp.host_ip: try:
2021-05-12 18:55:10
737
1
原创 docker容器中的mysql忘记密码怎么办?
docker容器中的mysql忘记密码怎么办?1.查看mysql在docker中运行的containerIDdocker ps// 此处amber这里获取的containerID为:eb540a56a5272.进入正在运行的mysql容器并以命令行交互:docker exec -it eb /bin/bash3.用vim编辑mysql配置文件(由于mysql镜像中默认没有安装vi或vim,更新apt, apt-get update 安装vim, apt-get install
2021-05-10 11:07:40
11983
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人