/// <summary> /// 获取文件的编码格式 /// </summary> public class EncodingType { /// <summary> /// 给定文件的路径,读取文件的二进制数据,判断文件的编码类型 /// </summary> /// <param name=“ ...
@GetMapping("/send") public String getmessage(HttpServletRequest request) { request.setAttribute("msg","跳转"); //设置参数 request.setAttribute("code",123); ...
分类:
编程语言 时间:
2021-06-29 16:08:05
阅读次数:
0
package com.encapsulation.demo04; // static public class Student { private static int age; // 静态变量 private double score; // 非静态变量 // 匿名代码块 赋初始值 { Syst ...
分类:
其他好文 时间:
2021-06-29 16:06:14
阅读次数:
0
题目链接:https://leetcode-cn.com/problems/non-overlapping-intervals/submissions/ 题目描述: 题解: class Solution { public: static bool cmp(vector<int> &a, vector ...
分类:
其他好文 时间:
2021-06-29 16:04:44
阅读次数:
0
1.会编程,参考实验 1.1编程实现词频统计基本操作 主函数 public static void main(String[] args) throws Exception{ Configuration conf = new Configuration(); //程序运行时参数 String[] o ...
分类:
其他好文 时间:
2021-06-29 16:02:29
阅读次数:
0
this关键字含义 1. this代表什么 this代表对象, 代表的是当前对象, this里保存的是对象的地址. 谁是当前对象? 比如方法调用 t1.say() 在这个方法执行时 执行以下代码 : public String say() { return “姓名:” + name + “,年龄:” ...
分类:
编程语言 时间:
2021-06-29 16:00:27
阅读次数:
0
TypeError: 'generator' object is not subscriptable,错误的原因就是把不具有下标操作对象用了对象[i],所以需要+list转化,加了之后,就不会报错了 ...
分类:
其他好文 时间:
2021-06-29 15:59:51
阅读次数:
0
https://leetcode-cn.com/problems/largest-bst-subtree/ public int largestBSTSubtree(TreeNode root) { return (root == null) ? 0 : getInfo(root).size; } ...
分类:
其他好文 时间:
2021-06-29 15:58:52
阅读次数:
0
一、数组的创建和初始化 (一)创建数组: import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(Syste ...
分类:
编程语言 时间:
2021-06-29 15:56:03
阅读次数:
0
public class 数据类型学习 { public static void main(String[] args) { int i = 10; int i2 = 010;//8进制0 int i3 = 0x10;//16进制0x //long i4 = 40L; //Long类型要在数字后面加 ...
分类:
其他好文 时间:
2021-06-29 15:49:06
阅读次数:
0