泛型方法的定义 /** * 泛型参数的无返回值方法 * * 1、public 与 返回值中间<T>非常重要,可以理解为声明此方法为泛型方法。 * 2、只有声明了<T>的方法才是泛型方法,泛型类中的使用了泛型的成员方法并不是泛型方法。 * 3、<T>表明该方法将使用泛型类型T,此时才可以在方法中使用泛 ...
分类:
其他好文 时间:
2021-04-20 14:34:49
阅读次数:
0
1.simple_php ?<?php show_source(__FILE__); include("config.php"); $a=@$_GET['a']; $b=@$_GET['b']; if($a==0 and $a){ echo $flag1; } if(is_numeric($b)){ ...
分类:
其他好文 时间:
2021-04-20 14:34:36
阅读次数:
0
1、编写脚本 createuser.sh,实现如下功能:使用一个用户名作为参数,如果 指定参数的用户存在,就显示其存在,否则添加之;显示添加的用户的id号等信息 read -p " input the user: " USER if id $USER &> /dev/null ; then echo ...
分类:
系统相关 时间:
2021-04-20 14:31:15
阅读次数:
0
#include <iostream> //预处理器编译指令#include int main(void) //函数头 { //函数体开始{ using namespace std; //编译指令 int apple; //声明整数变量 apple = 25; //赋值变量 cout << "我有" ...
分类:
编程语言 时间:
2021-04-20 14:29:02
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi ...
分类:
其他好文 时间:
2021-04-20 14:27:33
阅读次数:
0
写一个符合 Promise A+ 规范的 Promise 类型定义 // MyPromise.ts type resType = (value?: any) => void; type rejType = (reason?: any) => void; type executorType = (re ...
分类:
其他好文 时间:
2021-04-20 14:26:37
阅读次数:
0
1.开发流程 - 配置数据库 - 定义模型类 - 生成迁移文件 - 执行迁移生成数据表 - 使用模型类进行增删改查操作 2.ORM - **概述**:对象->关系->映射 - **任务** -- 根据对象类型生成表结构 -- 将对象、列表的操作转换为sql语句 -- 将sql语句查询到的结果转换为对 ...
分类:
其他好文 时间:
2021-04-20 14:20:53
阅读次数:
0
学习rabbitMQ时 自己写了一个发送者 案例 运行后报错: Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; protocol method: #method<connection.close>(r ...
分类:
数据库 时间:
2021-04-20 14:20:37
阅读次数:
0
解锁用户 SQL> alter user scott identified by tiger account unlock; 用户已更改。 切换用户 SQL> conn scott/tiger 已连接。 查看当前用户 SQL> show user USER 为 "SCOTT" 查看所有表 SQL> ...
分类:
其他好文 时间:
2021-04-20 14:12:18
阅读次数:
0
在线使用地址:https://lightbc.github.io/qt-demo/html/convertFileToBase64.html 前端代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Tit ...
分类:
其他好文 时间:
2021-04-20 14:11:59
阅读次数:
0