{ "keys": ["tab"], "command": "reindent", "context": [ { "key": "setting.auto_indent", "operator": "equal", "operand": true }, { "key": "selection_emp ...
分类:
其他好文 时间:
2018-06-10 11:58:07
阅读次数:
125
一、如何在可编辑区域div的光标处通过点击事件来添加文本内容 下面的例子是可编辑div的区域添加文本内容和判断光标位置的方法 range.startOffset;相对于上个元素 获取整个元素偏移量的方法(复制的情况需要自己来计算) selection是对当前激活选中区(即高亮文本)进行操作。 在非I ...
分类:
其他好文 时间:
2018-06-10 00:23:51
阅读次数:
180
/*禁止焦点(取消QTableView选中后的虚线框)*/ view.setFocusPolicy(Qt::NoFocus); ...
分类:
其他好文 时间:
2018-06-08 15:48:52
阅读次数:
169
常用 General 基础编辑 Basic editing 导航 Navigation 搜索和替换 Search and replace 多光标和选择 Multi-cursor and selection 丰富的语言编辑 Rich languages editing 编辑器管理 Editor man ...
分类:
其他好文 时间:
2018-06-08 10:38:44
阅读次数:
169
交换机的初始化配置方式分为两种,一种是steup的交互式配置模式,一种是逐条命令的配置模式 这里将首先演示setup的方式配置 进入特权模式 Switch> enable 输入setup Switch#setup 确认配置 Continue with configuration dialog? [y ...
分类:
其他好文 时间:
2018-06-07 17:48:40
阅读次数:
353
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class ExportAssetBundles : MonoBehaviour { //... ...
分类:
编程语言 时间:
2018-06-02 11:34:37
阅读次数:
126
选择排序( Selection sort) 1.算法描述: 列表上的2个线性传递 在每次通过时,它会选择最小的值 用最后一个未分类元素交换它 2.算法属性: 算法时间复杂度:O(n**2) 不稳定性:list里面重复元素可能会因选择后改变前后顺序 O(1) 额外的空间 O(n2 ) 对比 O(n) ...
分类:
编程语言 时间:
2018-05-31 23:06:54
阅读次数:
219
question: Animation. Add code to Insertion and Selection to make them draw the array contents as vertical bars likes the visual traces in this section ...
分类:
其他好文 时间:
2018-05-30 17:32:07
阅读次数:
175
导入葡萄酒数据: 运行结果: 划分训练集和测试集: 我们可以使用 sklearn.model_selection 中的 train_test_split 划分数据,test_size用来设置测试数据的比例,random_state用来 设置随机数是否保持一致。 这里如果你用的是 sklearn.cr ...
分类:
其他好文 时间:
2018-05-29 21:11:31
阅读次数:
504