条件判断语句 条件语句: If(boolean类型) {} else {} (打大括号避免出错) switch (export)语句:export的类型必须是 byte,short,char,int ,String enum; Switch(export){ Case (n): 语句; Break; ...
分类:
编程语言 时间:
2019-04-28 20:51:26
阅读次数:
175
import java.util.Iterator; public enum CountryEnums { ONE(1,"韩"),TWO(2,"魏"),THREE(3,"赵"),FOUR(4,"齐"),FIVE(5,"楚"),SIX(6,"燕"); private Integer retCode; ... ...
分类:
编程语言 时间:
2019-04-27 21:12:02
阅读次数:
227
1、根目录新建nlog.config配置文件 2、添加NLog包 Install-Package NLog.Web.AspNetCore 3、Configure配置 Main方法里配置使用 4、使用 ...
分类:
Web程序 时间:
2019-04-27 10:11:31
阅读次数:
1347
同时遍历两个列表 同时遍历两个列表 同时遍历两个列表 同时遍历两个列表 1 nfc = ["Packers", "49ers"] 2 afc = ["Ravens", "Patriots"] 3 for i,j in zip(nfc,afc): 4 print(i,j) Packers Ravens ...
分类:
编程语言 时间:
2019-04-26 22:56:40
阅读次数:
271
原来是因为 Windows 记事本在修改 UTF 8 文件时自作聪明地在文件开头添加 BOM 导致的,所以才会导致 IDEA 不能正确读取 .java 文件从而程序出错。 解决: 找到 文件。使用 打开 转码 并保存即可。 ...
分类:
编程语言 时间:
2019-04-26 00:40:37
阅读次数:
184
题目描述: 现在,有一行括号序列,请你检查这行括号是否配对。 题目描述: 现在,有一行括号序列,请你检查这行括号是否配对。 题目描述: 现在,有一行括号序列,请你检查这行括号是否配对。 输入描述: 第一行输入一个数N(0<N<=100),表示有N组测试数据。后面的N行输入多组输入数据,每组输入数据都 ...
分类:
编程语言 时间:
2019-04-25 22:48:41
阅读次数:
166
题目如下: Given an array A of integers, return the length of the longest arithmetic subsequence in A. Recall that a subsequence of A is a list A[i_1], A[i ...
分类:
其他好文 时间:
2019-04-24 23:35:51
阅读次数:
207
学习过程中中,把内容过程中常用的内容片段做个珍藏,下边内容段是关于C语言反转单向链表的内容,应该能对大伙有较大用处。#include"stdafx.h"enum{N=3};classNode{public:intvar;Node(inti):pNext(NULL),var(i){}};{if(pHead->pNext->pNext!=NULL)helper(pHea
分类:
编程语言 时间:
2019-04-24 17:30:38
阅读次数:
235
要使用Dictionary集合,需要导入C#泛型命名空间 System.Collections.Generic(程序集:mscorlib) 要使用Dictionary集合,需要导入C#泛型命名空间 System.Collections.Generic(程序集:mscorlib) Dictionary ...
https://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_109.html whatis expr 举例 whatis uint64 -> unsigned long long Print the data type of expression ex ...
分类:
数据库 时间:
2019-04-23 23:53:45
阅读次数:
314