#json#time、datetime#os、sys#randomimport os# os.rename('m1.py','M1.py')# os.remove()#删除文件,不能删除文件夹# os.rmdir('test')#删除空文件夹的# os.mkdir('cars/bmw') #创建文件 ...
分类:
编程语言 时间:
2021-05-24 13:21:58
阅读次数:
0
npm install -g @vue/cli npm uninstall -g @vue/cli yarn global add @vue/cli yarn global remove @vue/cli 首先确定你的是npm安装的还是yarn安装的,要用对应的卸载方式 如果还是卸载不成功,那么有以 ...
分类:
系统相关 时间:
2021-05-24 10:59:47
阅读次数:
0
[...new Set(arr)] 解析:ES6 提供了新的数据结构 Set。它类似于数组,但是成员的值都是唯一的,没有重复的值。 Set本身是一个构造函数,用来生成 Set 数据结构。 const s = new Set(); [2, 3, 5, 4, 5, 2, 2].forEach(x => ...
分类:
编程语言 时间:
2021-05-24 10:13:29
阅读次数:
0
目录 HashSet概述 HashSet构造 add方法 remove方法 遍历 合计合计 先看一下LinkedHashSet 在看一下TreeSet 总结 一. HashSet概述 HashSet是Java集合Set的一个实现类,Set是一个接口,其实现类除HashSet之外,还有TreeSet, ...
分类:
编程语言 时间:
2021-05-24 09:59:18
阅读次数:
0
一、DOM 控制class classList :以数组形式,获取该节点元素所有的class样式 remove :移除类 add :添加类 contains: 判断是否包含某个类选择器 toggle :没有就添加.有则删无则加 <!DOCTYPE html> <html lang="en"> <he ...
分类:
其他好文 时间:
2021-05-24 09:42:31
阅读次数:
0
windows dos 常用命令行(完整) dir (directory) :列出当前目录下的文件以及文件夹 md (make directory): 创建目录 rd (remove directory):删除目录 cd (change directory):进入指定目录 cd.. : 退回到上一级 ...
分类:
其他好文 时间:
2021-05-24 09:36:19
阅读次数:
0
现象: docker run 命令在容器内运行一个应用程序,提示 You have to remove (or rename) that container to be able to reuse that name. 原因: 启动的容器已在容器中使用,必须删除或者重命名该容器才能使用。 解决办法: ...
分类:
其他好文 时间:
2021-05-24 07:04:17
阅读次数:
0
+ + + + + + + + + + | stream of elements + > |filter+-> |sorted+-> |map+-> |collect| + + + + + + + + + + stream() ? 为集合创建串行流。 forEach Stream 提供了新的方法 ' ...
分类:
其他好文 时间:
2021-05-24 06:53:50
阅读次数:
0
1 sudo apt-get update 更新源 2 sudo apt-get install package 安装包 3 sudo apt-get remove package 删除包 4 sudo apt-cache search package 搜索软件包 5 sudo apt-cache ...
分类:
其他好文 时间:
2021-05-24 06:42:21
阅读次数:
0
1 <html> 2 <head> 3 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 4 <title>Reg</title> 5 <style> 6 .state1{ 7 color:#aaa; 8 } 9 ...
分类:
Web程序 时间:
2021-05-24 06:16:05
阅读次数:
0