一、在VSCode中编写Go代码时,缩进是使用tab缩进,主要是由于以下两个方面。 1. Go官方提供的代码格式化工具gofmt默认是使用tab缩进,并且为8个字符宽度。 2. 并且在VSCode中,打开go文件时默认的缩进选项是tab缩进,VSCode右下角可见。 二、由于写Python习惯了以后 ...
分类:
系统相关 时间:
2020-04-06 17:25:21
阅读次数:
129
Visual studio调试: 定位代码 缩小调试范围 打断点 不断继续run 查看需要变量值与自己预期结果 判断哪里问题 #include "stdafx.h" #include <stdio.h> #include <string.h> const char* str[] = { "Hello ...
分类:
数据库 时间:
2020-04-06 17:17:09
阅读次数:
80
Windows内核分析索引目录:https://www.cnblogs.com/onetrainee/p/11675224.html 消息机制 1.最基本的窗口创建 #include <windows.h> LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, L ...
分类:
其他好文 时间:
2020-04-06 15:42:41
阅读次数:
79
package com.ybzn; /** * 代码生成器 * * @author Hugo * @time 2020/4/6 */ import com.baomidou.mybatisplus.annotation.DbType; import com.baomidou.mybatisplus. ...
分类:
其他好文 时间:
2020-04-06 15:28:07
阅读次数:
125
```cpp #include #include #include #include using namespace std; /** * 重w 价v * 2 3 * 3 4 * 4 5 * 5 8 * 9 10 * * 背包容量 20 * */ #define N 6 #define W 21 i... ...
分类:
其他好文 时间:
2020-04-06 13:56:15
阅读次数:
116
不使用递归import os from os.path import join, getsize def getdirsize(dir): size = 0 for root, dirs, files in os.walk(dir): size += sum([getsize(join(root, ...
分类:
其他好文 时间:
2020-04-06 13:48:49
阅读次数:
64
九余数定理概念: 首先看九余数,即一个数对9取余的得到的数(某数%9)称为九余数。 一个数的各个位数之和小于10的数称为这个数的九余数,(相加至小于10)。 可以这么说一个数各个位数相加如果相加之后的结果小于10,那么这个结果就等于这个数模9(对9取余)。 举个例子:比如215,各个位数相加值小于1 ...
分类:
其他好文 时间:
2020-04-06 11:59:56
阅读次数:
72
```java import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.List; import java.util.function.Function; i... ...
分类:
其他好文 时间:
2020-04-06 11:44:44
阅读次数:
52
"传送门" 妖梦拼木棒 题目背景 上道题中,妖梦斩了一地的木棒,现在她想要将木棒拼起来。 题目描述 有 $n$ 根木棒,现在从中选 $4$ 根,想要组成一个正三角形,问有几种选法? 答案对 $10^9+7$ 取模。 输入输出格式 输入格式 第一行一个整数 $n$。 第二行 $n$ 个整数,第 $i$ ...
分类:
其他好文 时间:
2020-04-06 11:41:52
阅读次数:
57
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu ...
分类:
其他好文 时间:
2020-04-06 11:37:02
阅读次数:
81