package main import "fmt" func main() { a :=[8]int{24,69,80,57,13,1,100} //算出a的长度 //n :=len(a) //0 1 2 3 //冒泡排序 /*for i:=0;i a[j+1]{ a[j],a[j+1] = a[j... ...
分类:
编程语言 时间:
2019-12-21 11:44:20
阅读次数:
64
以下代码来源: 设计模式精解-GoF 23种设计模式解析附C++实现源码 //Prototype.h #pragma once class Prototype { public: virtual ~Prototype(); virtual Prototype* clone() const = 0; ...
分类:
其他好文 时间:
2019-12-21 00:21:38
阅读次数:
99
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P ...
分类:
数据库 时间:
2019-12-20 22:32:29
阅读次数:
124
目录 "引子" "Dependency Graph" "Runtime" "Manifest" "Module、Bundle、Chunk" "Bundle Splitting" "Code Splitting" "Tree Shaking" "Output Filename" "参考资料" 引子 打 ...
分类:
Web程序 时间:
2019-12-20 20:20:06
阅读次数:
128
1.前端 前端监听地址:ip:webSocket服务的端口号/webSocket/参数 // WebSocket相关 initWebSocket: function() { if (typeof WebSocket "undefined") { alert("您的浏览器不支持socket"); } ...
分类:
编程语言 时间:
2019-12-20 18:44:31
阅读次数:
111
准备jar包 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.2.RELEASE</version> </dependency> <dep ...
分类:
编程语言 时间:
2019-12-20 12:19:10
阅读次数:
75
package util import ( "math/rand" "time" ) type LoadBalance struct { Servers []*ServiceInfo } func NewloadBalance(servers []*ServiceInfo) *LoadBalance... ...
分类:
编程语言 时间:
2019-12-20 01:09:02
阅读次数:
99
1. 确保数组值 使用 grid ,需要重新创建原始数据,并且每行的列长度可能不匹配, 为了确保不匹配行之间的长度相等,可以使用Array.fill方法。 let array = Array(5).fill(''); console.log(array); // outputs (5) ["", " ...
分类:
Web程序 时间:
2019-12-19 23:35:32
阅读次数:
103
ADB 是Android Debug Bridge 的简称,它是SDK的安装目录的platform-tools子目录下的一个应用程序。 文件操作: 1、将PC机上的文件的导入到设备中: adb push PC上文件的path 设备存储PC上文件的path 例如:adb push C:/Users/z ...
分类:
数据库 时间:
2019-12-19 21:08:52
阅读次数:
107
go启动一个简单的httpserver package main import ( "fmt" "log" "net/http" ) func main() { http.HandleFunc("/", sayhelloName) //设置访问的路由 err := http.ListenAndSer... ...
分类:
Web程序 时间:
2019-12-19 21:08:40
阅读次数:
91