Set是ES6新推出的数据结构,Set结构里面的每个元素都是唯一的; 如何创建一个Set? // Set 构造函数接收一个数组进行初始化;如果什么都不传则创建一个空Set; var set = new Set(["Kuma","Hattori","Yagyu"]); Set的一些常用方法 // se ...
分类:
其他好文 时间:
2021-02-27 13:23:13
阅读次数:
0
浮动,就是使元素脱离标准流,移动到其父元素指定的位置的过程,包括float: left float: right; 浮动常见的问题: 1.浮动的子元素无法超出父元素的范围; <head> <style type="text/css"> #father { width: 200px; height: ...
分类:
Web程序 时间:
2021-02-27 13:17:54
阅读次数:
0
推荐书籍:码出高效: Java 开发手册 2.2 层次选择器 idea里代码规范是按:ctrl +alt+L快捷键 注释快捷键:ctrl+/ 1.后代选择器:在某个元素的后面 祖爷爷 爷爷 爸爸 你 <style> /*p{*/ /* background: #02ff00;*/ /*}*/ /* ...
分类:
Web程序 时间:
2021-02-27 13:14:06
阅读次数:
0
题目要求 用shell实现,把一个文本文档中只有一个数字的行给打印出来。 参考答案 #!/bin/bash while read line do n=`echo $line |sed 's/[^0-9]//g'|wc -L` if [ $n -eq 1 ] then echo $line fi do ...
分类:
其他好文 时间:
2021-02-27 13:00:32
阅读次数:
0
题目要求 输入一串随机数字,然后按千分位输出。 比如输入数字串为“123456789”,输出为123,456,789。 参考答案 #!/bin/bash n=`echo $1|wc -L` for d in `echo $1|sed 's/./& /g'` do n2=$[$n%3] if [ $n ...
分类:
其他好文 时间:
2021-02-27 12:58:28
阅读次数:
0
aa="test1" class A: def test1(self): print("test1") def test2(self): print("test2") def test3(self): print("test3") a=A() func=getattr(a,aa) func() #t ...
分类:
其他好文 时间:
2021-02-27 12:58:13
阅读次数:
0
main.cpp 1 #include <stdio.h> 2 #include "mystack.h" 3 #include <stdlib.h> 4 #include <string.h> 5 #include <windows.h> 6 using namespace std; 7 #defi ...
分类:
编程语言 时间:
2021-02-26 13:21:08
阅读次数:
0
ffmpeg 常用命令记录 ffmpeg官网 录屏 ffmpeg -f {device} -i {input} -r {帧率} out.yuv e.g. ffmpeg -f gdigrab -i "desktop" out.yuv ffplay -video_size 1920x1080 -pix_ ...
分类:
其他好文 时间:
2021-02-26 13:18:38
阅读次数:
0
一、sqlachemy(是一个orm框架) 1 orm框,可以独立出来用 2 orm执行原生sql 生成engine(链接池) 详见上一篇博客 engine = create_engine() 获取链接 conn = engine.raw_connection() 后续就一样了 3 创建表,删除表和 ...
分类:
数据库 时间:
2021-02-26 13:16:19
阅读次数:
0
WallpaperHelper.cs文件: using Microsoft.Win32; using System.IO; using System.Runtime.InteropServices; namespace NPOIDemo { /// <summary> /// 更换壁纸 /// </ ...