URL参数可以通过DefaultQuery()或Query()方法获取 DefaultQuery()若参数不存在,返回默认值,Query()若不存在,返回空串 API ? name=zs package main import ( "fmt" "net/http" "github.com/gin-g ...
分类:
Web程序 时间:
2021-06-29 15:18:59
阅读次数:
0
用一个简单例子,做一下自定义注解: import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * * */ @Retention(RetentionPolicy.RUNTIME) p ...
分类:
其他好文 时间:
2021-06-28 21:19:24
阅读次数:
0
14. 字符串 什么是字符串? Go 语言中的字符串是一个字节切片。把内容放在双引号""之间,我们可以创建一个字符串。让我们来看一个创建并打印字符串的简单示例。 Copy package main import ( "fmt" ) func main() { name := "Hello World ...
分类:
其他好文 时间:
2021-06-28 21:18:43
阅读次数:
0
前言 做对应于播放rosbag包的离线版本, 读取文件夹中image和pcd来处理, 因此需要读取文件夹下的图像文件, 然后根据图像的名称来读取pcd. 代码 #include <iostream> #include <string> #include <vector> #include <fstr ...
分类:
编程语言 时间:
2021-06-28 21:09:42
阅读次数:
0
简介 对cmp的理解能力 常规题 code #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; struct Student{ int idx; int n ...
分类:
其他好文 时间:
2021-06-28 21:01:31
阅读次数:
0
单片机十天征服你-第二讲-流水灯设计、蜂鸣器发声、继电器设计 ## 各大品牌官网申请免费样片 流水灯设计 //二极管闪烁 #include<reg52.h> sbit p1_1=P1^0; unsigned int a; void main() { while(1) { a=50000; p1_1= ...
分类:
其他好文 时间:
2021-06-28 21:00:26
阅读次数:
0
// CommonTest.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include <atlbase.h> #incl ...
分类:
编程语言 时间:
2021-06-28 20:36:02
阅读次数:
0
编写重载模板 1 #include <iostream> 2 #include <sstream> 3 #include <string> 4 using namespace std; 5 6 template <typename T> 7 string debug_rep(const T &t) ...
分类:
编程语言 时间:
2021-06-28 20:25:45
阅读次数:
0
包机制 为了更好的组织类,java提供了包机制,用于区别类名的命名空间 包语句的语法格式为: package pkg1.pkg2...; 一般利用公司域名倒置作为包名 为了能够使用某一个包的成员,我们需要在java程序中国呢明确导入该包。使用 import 语句可以完成此功能。 Import pkg ...
分类:
编程语言 时间:
2021-06-28 20:24:41
阅读次数:
0
字符常量'M'的类型是int,大小4 bytes. 浮点数的如果没有加L(l)或者F(f),那它默认是double,大小8 bytes. 1 #include<stdio.h> 2 #include <stdbool.h> 3 4 int main() 5 { 6 int * int_p = NUL ...
分类:
编程语言 时间:
2021-06-28 20:24:08
阅读次数:
0