源地址忘记了 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using ...
Comparable接口用于定义对象的自然顺序,是排序接口,假设现在存在“实现Comparable接口的类的对象的List列表(或数组)”,则该List列表(或数组)可以通过 Collections.sort(或 Arrays.sort)进行排序。\ 而Comparator是比较器接口,若有类没有实 ...
分类:
其他好文 时间:
2020-03-21 14:42:57
阅读次数:
46
module counter( input clk, input rst_n, output reg[7:0] data_out ); //reg define reg [3:0] cnt; //假设计数器每计数十次,溢满一次 reg [2:0] lsm_cnt; //计数器每溢满一次,lsm_cn ...
分类:
其他好文 时间:
2020-03-21 12:52:54
阅读次数:
151
记录一下C#插件式开发。 原理:主要模块【运行DLL(共享DLL)】、【界面主程序】、【插件DLL】 原理没时间写太详细,以后有机会再补充吧,先上传代码。 以下是C#DLL程序集代码,命名为【Runtime】 using System; using System.Collections.Generi ...
事件处理监听事件可以用 v-on 指令监听 DOM 事件,并在触发时运行一些 JavaScript 代码。示例: Add 1 The button above has been clicked {{ counter }} times.var example1 = new Vue({ el: '#ex... ...
分类:
其他好文 时间:
2020-03-20 23:45:39
阅读次数:
78
一、在mongo.exe中的命令: mongodb4.2版本,bin目录下,双击mongo.exe,在”>”的命令提示下,我们可以输入一些命令: > show dbs #查看有哪些db > use local #切换到local数据库 > show collections #查看当前所有集合 > d ...
分类:
数据库 时间:
2020-03-20 15:37:52
阅读次数:
72
一、问题 var counter = 0; function add() { return counter += 1; } 谨慎使用全局变量; 二、示例 var add = (function () { var counter = 0; return function () {return coun ...
分类:
编程语言 时间:
2020-03-20 11:03:08
阅读次数:
51
代码: 1 import java.util.ArrayList; 2 import java.util.Collections; 3 4 public class Poker1 { 5 public static void main(String[] args) { 6 /* 7 * 1: 准备牌 ...
分类:
其他好文 时间:
2020-03-20 00:39:17
阅读次数:
68
线程池的基本原理 声明任务队列、线程数量这两者数量主要由自己init,往队列中添加任务,如果超过数量则等待(阻塞),否则加入线程执行 import java.util.ArrayList; import java.util.Collections; import java.util.List; im ...
分类:
编程语言 时间:
2020-03-18 18:43:41
阅读次数:
62
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Drawing.Drawing2D;using ...