已经两次耳机没声音了,很烦人。 方法一: 终端输入alsamixer,按f5,然后把所有选项打开,调到最大,合上盖子让电脑待机,再打开 方法二: sudo apt-get remove alsa-base sudo apt-get autoremove sudo apt-get install al ...
分类:
系统相关 时间:
2019-01-05 22:47:33
阅读次数:
239
今天所学的是模板实参推断。 首先假设我们比较两个类型不同的参数的函数模板,很简单: 它的用法是这样的: 假设我们不知道函数模板具体的返回类型,可以用decltype来获取表达式的返回类型: 标准库也包含几个类型转换模板库: 可能其他还有一些东西,但是今天就先写那么点吧。 ...
分类:
编程语言 时间:
2019-01-05 21:28:19
阅读次数:
229
Problem: On a 2x3 board, there are 5 tiles represented by the integers 1 through 5, and an empty square represented by 0. A move consists of choosing ...
分类:
其他好文 时间:
2019-01-05 18:23:15
阅读次数:
171
集合是无序的,可变的,集合的元素是不重复的(需要去重的列表转换成set类型,可以去重),不可变的; 增:set.add(‘value’) set.update([1,2,3]) 批量增加元素 删:set.remove(‘value’) 按元素删除 set.pop 随机删除集合内的元素,有返回值,返回 ...
分类:
其他好文 时间:
2019-01-05 15:17:54
阅读次数:
181
实现效果: 知识运用: File类的Move方法 //将指定文件移动到新位置 public static void Move(string sourceFileName,string destFileName) Directory类的Move方法 //将文件或目录及其内容移动到新位置 public ...
分类:
其他好文 时间:
2019-01-05 00:15:23
阅读次数:
183
To make an array uniqued, we can use Set() from Javascript. We can see that all the duplicated value have been removed, now the only thing we need to ...
分类:
编程语言 时间:
2019-01-04 23:33:44
阅读次数:
353
鼠标事件click:单击dblclick:双击mousedown:鼠标按下mouseup:鼠标抬起mouseover:鼠标悬浮mouseout:鼠标离开mousemove:鼠标移动mouseenter:鼠标进入mouseleave:鼠标离开 <button onclick="myClick()">鼠 ...
分类:
编程语言 时间:
2019-01-04 22:33:09
阅读次数:
211
FileOperationUtils.java ...
分类:
移动开发 时间:
2019-01-04 19:38:43
阅读次数:
264
今日内容一.列表 基本使用 1、用途:用来记录同种属性的多个值2、定义方式:在[]内用逗号分隔开多个任意类型的值lic=['a','b',1,2,['c','d']]数据类型转换:list 但凡能被for循环可以循环的所有类型都可以转成列表res=list('hello')print(res)for ...
分类:
其他好文 时间:
2019-01-04 19:11:50
阅读次数:
194
# 修改文件 #文件是不能修改的,使用新建一个一样的文件,删除旧文件的方法来做到修改文件with open('小护士班主任',encoding='utf-8') as f, open('小护士班主任.bak','w',encoding='utf-8') as f2: for line in f: i ...
分类:
其他好文 时间:
2019-01-04 17:12:27
阅读次数:
160