层次选择器 后代选择器:在某个元素后面 /*后代选择器*/ body p{ color: aqua; } 子选择器 body>h1{ color:chocolate; } 相邻兄弟选择器 /*相邻兄弟选择器:只有一个,相邻(向下)*/ .active + h2{ background: #c4fff ...
分类:
其他好文 时间:
2021-05-24 00:23:25
阅读次数:
0
一、数据库常用简写命令 1、登录 psql -U pname -d database // pname 表示postgres的登录用户名,database 则表示要访问的数据库 2、查看所有的数据库 \l \l+ 列出所有数据库 (加 "+" 获取更多的信息) 3、查看所有的表(这里的红色部分根据你 ...
分类:
数据库 时间:
2021-05-24 00:06:16
阅读次数:
0
sudo vim /etc/netplan/50-cloud-init.yaml # This file is generated from information provided by the datasource. Changes # to it will not persist across ...
分类:
系统相关 时间:
2021-05-24 00:04:56
阅读次数:
0
使用线程池的时候,WordNet会出现lazyrender的错误,通过查看一些资料,使用下面的方法去解决: import nltk from nltk.corpus import sentiwordnet as swn # Do this first, that'll do something ev ...
分类:
编程语言 时间:
2021-05-23 23:47:26
阅读次数:
0
from sklearn.metrics import classification_report y_true=[0,1,2,2,2]#真值 y_pred=[0,0,2,2,1]#预测结果 print(classification_report(y_true,y_pred)) ...
分类:
其他好文 时间:
2021-05-23 23:39:17
阅读次数:
0
播放器歌词数据抓取 在api文件夹下创建song.js 设置获取歌曲api import axios from 'axios'; export function getLyric(id) { return axios.get(`/api/lyric?id=${id}`); } 把这个方法封装到com ...
分类:
移动开发 时间:
2021-05-23 23:35:55
阅读次数:
0
引入 Element 你可以引入整个 Element,或是根据需要仅引入部分组件。我们先介绍如何引入完整的 Element。 ¶完整引入:在 main.js 中写入以下内容: import Vue from 'vue'; import ElementUI from 'element-ui'; imp ...
分类:
Web程序 时间:
2021-05-23 23:33:38
阅读次数:
0
分页查询 ★ /* 应用场景:当要显示的数据,一页显示不全,需要分页提交sql请求 语法: select 查询列表 from 表 【join type join 表2 on 连接条件 where 筛选条件 group by 分组字段 having 分组后的筛选 order by 排序的字段】 lim ...
分类:
数据库 时间:
2021-05-23 23:31:34
阅读次数:
0
语法: select 字段|常量|表达式|函数 【from 表】 【where 条件】 union 【all】 select 字段|常量|表达式|函数 【from 表】 【where 条件】 union 【all】 select 字段|常量|表达式|函数 【from 表】 【where 条件】 un ...
分类:
数据库 时间:
2021-05-23 23:31:00
阅读次数:
0
passwd [选项] 登录名 -e,--expire 强制用户密码过期 这时候需要使用root账户给tel用户重新设置密码 -l,--lock 锁定指定用户密码 -u, --unlock 给指定账户解锁定 -d,--delete 将密码删除,即设置为空密码 -x, --maximum=DAYS 密 ...
分类:
其他好文 时间:
2021-05-23 23:29:20
阅读次数:
0