logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

mysql报错:error while loading shared libraries: libncurses.so.5: cannot open shared object file

使用命令mysql -uroot -p连接mysql数据库报错:error while loading shared libraries: libncurses.so.5: cannot open shared object file解决办法1. 查找没有libncurses.so.5,可能有libncurses.so不同版本的文件,使用命令find / -name 'libncurses*'查找

#mysql
一年中的第几天与一周中的第几天

leetcode1154. 一年中的第几天pythondef dayOfYear(self, date: str) -> int:year, month, day = [int(i) for i in date.split("-")]arr = [31,28,31,30,31,30,31,31,30,31,30,31]if year % 400 == 0 or year % 4 == 0 a

#leetcode
mysql报错:error while loading shared libraries: libncurses.so.5: cannot open shared object file

使用命令mysql -uroot -p连接mysql数据库报错:error while loading shared libraries: libncurses.so.5: cannot open shared object file解决办法1. 查找没有libncurses.so.5,可能有libncurses.so不同版本的文件,使用命令find / -name 'libncurses*'查找

#mysql
django用request.POST拿不到axios.post请求的数据

post请求常见的数据格式(content-type)Content-Type: application/json : 请求体中的数据会以json字符串的形式发送到后端Content-Type: application/x-www-form-urlencoded:请求体中的数据会以普通表单形式(键值对)发送到后端Content-Type: multipart/form-data: 它会将请求体的数

axios请求后端拿不到数据的解决方案

文章目录问题场景问题原因要点1要点2问题分析解决方案解决方案一解决方案二解决方案三解决方案四解决方案五解决方案六问题场景场景很简单,就是一个正常 axios post 请求:axios({headers: {'deviceCode': '...

axios设置Content-Type无效

调用axios(config)config中写的是params,而并非data时,headers里的Content-Type无效,需将params改为data

You are using the runtime-only build of Vue where the template compiler is not available. Either pre

在升级脚手架到vue-cli3.0版本的时候出现了这个报错:[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the c

margin 实现水平居中,垂直居中

首先了解下,margin的auto属性的作用是用来分配剩余空间,所以对于有剩余空间的元素才有效哦(块及元素)。比如图片设置margin: 0 auto是无效的,因为图片是内联元素,不是占一整行,没有剩余空间。1.块及元素水平方向居中:原理:两侧auto,则平分剩余空间,相当于水平居中。div { margin-right: auto;  margin-left: auto;...

#css
axios请求添加token的方法

// post请求axios.post('path', {}, {headers: {authorization: `Bearer ${token}`,},});// get请求axios.get('path', {headers: {authorization: `Bearer ${token}`,},});// 统一方式axios.defaults.headers['authorization

解决System limit for number of file watchers reached

问题背景系统: deepin详情: 在用vue脚手架写项目的时候,用npm run serve启动服务,报错Error: ENOSPC: System limit for number of file watchers reached解决办法原因:文件监视程序的系统产生了限制,达到了默认的上限,需要增加限额。查看限额cat /proc/sys/fs/inotify/max_user_watch临时

#linux
暂无文章信息