一个请求通过经过中间件最后生成响应 基于koa2的demo const Koa = require('koa'); const app = new Koa(); const PORT = 3000; // #1 app.use(async (ctx, next)=>{ console.log('wa ...
分类:
其他好文 时间:
2021-04-15 12:19:38
阅读次数:
0
注释: 本文中出现的所有题目均来自于网络 本人只是对其进行解答和注释 所有题目均为个人解答方案,如有纰漏或更好的解答欢迎指正 选择题1-10: 下面属于关键字的是: func def struct class [答案]:AC [解析&扩展]: func用于定义函数,故A正确。 def是python中 ...
分类:
其他好文 时间:
2021-04-15 11:59:14
阅读次数:
0
整理一下求C 的两种方法 题目 题意 这道题主要就是求n组东东的放置方法,约束条件是在任意第i组放完之前,i-1组必须放完,问有多少放置方法 特点 组合数学+简单的DP,解法思路就是在任意放置i组时,除了最后一位一定是i,剩下任意插空放置 一种是用逆元求(适合数值大的适合) int ksm(int ...
分类:
其他好文 时间:
2021-04-14 12:43:08
阅读次数:
0
事件监听 当某个事件发生,会产生什么? public class Demo01 { public static void main(String[] args) { //按下按钮,触发事件 Frame frame = new Frame(); Button button = new Button() ...
分类:
其他好文 时间:
2021-04-14 12:40:04
阅读次数:
0
增强for循环 public class ForDemo{ public static void main(String[] args){ int[] numbers = {10,20,30,40,50}; //遍历数组元素 for(int x:numbers){ System.out.printl ...
分类:
编程语言 时间:
2021-04-14 12:36:49
阅读次数:
0
一、代码展示 <template> ... <div class="loading-animation-box" > <img class="loading-animation" width="26" height="28" src="../../../static/images/balabla.p ...
分类:
Web程序 时间:
2021-04-14 12:20:55
阅读次数:
0
package com.kuang.struct; public class TestDemo { public static void main(String[] args) { //打印三角形 5行 for (int i = 1; i <= 5; i++) { for (int j = 5; j ...
分类:
其他好文 时间:
2021-04-14 12:09:53
阅读次数:
0
// 1.Java方法 public static void main (String args[]){ int res = sum(1, 2); // int res = HelloWorld.sum(1, 2); System.out.println(res); } // 求和 public s ...
分类:
编程语言 时间:
2021-04-14 12:05:41
阅读次数:
0
package com.zhang.www.base.operater; public class Demo06 { public static void main(String[] args) { //++ -- 自增 自减 一元运算符:一个数字就可以运算 int a=3; int b=a++; ...
分类:
其他好文 时间:
2021-04-13 12:33:54
阅读次数:
0
package com.zhang.www.base.operater; public class Demo05 { public static void main(String[] args) { //关系运算符返回的结果: 正确,错误 布尔值表示 //if int a=10; int b=20; ...
分类:
其他好文 时间:
2021-04-13 12:33:43
阅读次数:
0