模块化,类似于java中的导包,将一些代码封装导出供其他地方调用 export用于规定模块的对外接口,,可导出一切js基本变量,如基本类型变量、函数、数组、对象等 import用于导入其他模块提供的功能 简单示例 user.js var name = "jack" var age = 21 func ...
分类:
其他好文 时间:
2021-06-11 18:23:59
阅读次数:
0
代码源自该视频 算法思想:选择一个中心点,将比中心点小的移动到左边,反之移动到右边; 这时形成两个子序列,对子序列递归直至,每个序列只有一个元素为止 时间复杂度 最好的情况是O(nlogn) 最差的情况是O(n²) 特点 如果基本有序 则会变成冒泡排序,时间复杂度为O(n²) package wha ...
分类:
编程语言 时间:
2021-06-11 18:23:48
阅读次数:
0
拼命报错,折腾了一天 ValueError: Tensor Tensor("conv1d_20/BiasAdd:0", shape=(?, 27, 512), dtype=float32) is not an element of this graph. keras修改backend的方法 http ...
分类:
其他好文 时间:
2021-06-11 18:23:34
阅读次数:
0
#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; /*学生学号 */ char name[20] ...
分类:
其他好文 时间:
2021-06-11 18:23:03
阅读次数:
0
#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; /*学生学号 */ char name[20] ...
分类:
其他好文 时间:
2021-06-11 18:22:43
阅读次数:
0
使用vuex,首先得了解它是用来干什么的? >实现数据共享的。 第一步:在项目中引入vuex ①在项目目录下,使用npm引入vuex:npm install vuex --save ②在项目的src中创建一个以store命名的文件夹,在store下创建一个以index.js命名的文件 ③在index ...
分类:
其他好文 时间:
2021-06-11 18:22:24
阅读次数:
0
题目:公园游玩 题意:依次经过k个点,求出其最短总路径的方案数. 题解:点A(x1,y1)到点B(x2, y2)的最短距离方案数为(高中组合知识:距离为n,向下走m次到达目的地最短距离的方案数): n = x2 - x1 + y2 - y1 m = x2 - x1 C(n, m) = n! / (m ...
分类:
其他好文 时间:
2021-06-11 18:22:12
阅读次数:
0
一、10进制转其他进制(如2进制): console.log(num.toString(2)) 二、其他进制(如2进制)转10进制: console.log(parseInt(num,2)) ...
分类:
编程语言 时间:
2021-06-11 18:21:58
阅读次数:
0
1 可变数据类型:字典dict、列表list、集合set 2 不可变数据类型:字符串string、元组tuple 3 数字:整数int、小数float、布尔bool 3.1 随机数 3.1.1 默认输出0到1之间的数: 1 import random 2 print(random.random()) ...
分类:
编程语言 时间:
2021-06-11 18:21:34
阅读次数:
0
1.table布局 <div class="box"> <p>前端开发真不错,就是智商跟不上</p> <p>前端开发真不错,就是智商跟不上</p> </div> .box { width: 300px; height: 200px; border: 1px solid #000; display: ...
分类:
Web程序 时间:
2021-06-11 18:21:11
阅读次数:
0
1. #include<stdio.h>#include<stdlib.h>#include<string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; /*学生学号 */ char name[20 ...
分类:
其他好文 时间:
2021-06-11 18:20:49
阅读次数:
0
一、添加maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 二、applicati ...
分类:
编程语言 时间:
2021-06-11 18:20:30
阅读次数:
0
open -n /Applications/Google\ Chrome.app/ --args --disable-web-security --flag-switches-begin --disable-features=SameSiteByDefaultCookies,CookiesWitho ...
分类:
其他好文 时间:
2021-06-11 18:20:14
阅读次数:
0
java.util.concurrent.Executors提供了一个 java.util.concurrent.Executor接口的实现用于创建线程池 一个线程池包括以下四个基本组成部分: 1、线程池管理器(ThreadPool):用于创建并管理线程池,包括 创建线程池,销毁线程池,添加新任务; ...
分类:
编程语言 时间:
2021-06-11 18:20:00
阅读次数:
0
title: ActiveMQWithCpp author: Youdias date: 2021-06-10 15:29:26 tags: ActiveMQ C++ VS2019 win32 ActiveMQ简介 Apache下的一个子项目,一个消息中间件,支持点对点和订阅发布模式,支持多种语言客 ...
分类:
编程语言 时间:
2021-06-11 18:19:46
阅读次数:
0
1. 索引是什么?有什么作用?使用索引的优缺点? 索引是一种用于快速查询和检索数据的数据结构。常见的索引结构有: B 树, B+树和 Hash索引。 优点: 使用索引可以大大加快数据的检索速度。 通过唯一性索引,可以保证数据库表中每一行数据的唯一性。 缺点: 创建索引和维护索引需要耗费很多时间,当对 ...
分类:
数据库 时间:
2021-06-11 18:19:31
阅读次数:
0
Sampler-http请求之KeepAlive使用总结 测试环境 apache-jmeter-2.13 KeepAlive使用介绍 说明: 1、Use KeepAlive 勾上,则表示为求连接设置请求头Connection: keep-alive,该配置对默认的HTTP实现不起作用,因为连接重用不 ...
分类:
Web程序 时间:
2021-06-11 18:19:02
阅读次数:
0