```cpp #include #include //deque是c++98中引入的动态数组(dynamic array) //namespace std { //template> //class deque; //} //特点:随机访问元素, 末端和头部添加删除元素效率高,中间删除和添加元素效率... ...
分类:
编程语言 时间:
2020-02-24 20:53:50
阅读次数:
84
Vue全家桶之组件化开发 一、组件 组件 (Component) 是 Vue.js 最强大的功能之一 组件可以扩展 HTML 元素,封装可重用的代码 二、 组件注册 2.1 全局注册 Vue.component(组件名称, { data: 组件数据, template: 组件模板内容 }) 全局组件 ...
分类:
其他好文 时间:
2020-02-24 13:16:38
阅读次数:
54
list排序方法一Comparator形式: 1.比较数字 List<Shoes> all_shoes = new ArrayList<Shoes>(); Collections.sort(all_shoes, new Comparator<Shoes>(){ @Override /* * * in ...
分类:
编程语言 时间:
2020-02-24 12:40:26
阅读次数:
356
1. collections模块(扩展数据类型) 1. nametuple:可命名元组,生成可以使用名字来访问元素内容的tuple。(用来表示坐标,求圆的面积) from collections import namedtuple P = namedtuple("point",["x","y","z ...
分类:
编程语言 时间:
2020-02-24 11:20:48
阅读次数:
104
/* access 连接工具类 */ using System; using System.Collections.Generic; using System.Text; using System.Data.SqlClient; using System.Data; using System.Con ...
分类:
数据库 时间:
2020-02-23 20:43:33
阅读次数:
78
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Linq.Expressions; using ...
分类:
数据库 时间:
2020-02-23 19:53:14
阅读次数:
293
using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks ...
分类:
其他好文 时间:
2020-02-23 19:50:00
阅读次数:
63
可迭代对象: 1.生成器 2.元组,列表,集合,字典,字符串(需要借助iter()函数转换,变成了迭代器) 判断是否可迭代? 1 from collections import Iterable 2 3 # 列表 4 list1 = [1, 3, 4, 5] 5 f = isinstance(lis ...
分类:
其他好文 时间:
2020-02-23 16:31:21
阅读次数:
58
源码: 1 from math import fabs #导入数学模块 2 3 from time import perf_counter #导入时间模块 4 5 from numba import jit 6 7 @jit 8 9 10 def Bar(i): #动态文本条 11 12 N = p ...
分类:
微信 时间:
2020-02-23 16:25:32
阅读次数:
114
using System; using System.Data; using System.Data.SqlClient; using System.Configuration; using System.Text; using System.Collections.Generic; using M ...
分类:
数据库 时间:
2020-02-23 11:31:24
阅读次数:
76