![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
编程语言
编程语言相关
DataPeak
不会做饭的程序员不是好的摄影师
展开
-
Scala in a Nutshell
scala原创 2022-11-11 17:19:34 · 394 阅读 · 0 评论 -
Scala手记
scala原创 2022-11-11 17:08:45 · 173 阅读 · 0 评论 -
Spark手记
spark手记原创 2022-11-02 09:35:09 · 411 阅读 · 0 评论 -
Intellij手记
intellij idea使用技巧原创 2022-10-26 14:59:52 · 82 阅读 · 0 评论 -
Python手记
python问题汇总原创 2022-03-09 09:25:51 · 886 阅读 · 0 评论 -
powershell统计文件
Get-ChildItem *.a | % { if(-not (Test-Path -Path "$($_.Directory)\$($_.BaseName).b" -PathType leaf)) { Write-Host $_.Name } }原创 2022-03-01 14:35:03 · 191 阅读 · 0 评论 -
PowerShell获取文件个数
通过@转数组@(Get-ChildItem).Count原创 2022-02-15 16:05:22 · 1190 阅读 · 0 评论 -
VBA按日期创建sheet
VBA按日期创建sheet原创 2021-12-17 10:57:36 · 777 阅读 · 0 评论 -
VBA删除第一个sheet后的所有sheet
VBA删除第一个sheet后的所有sheet原创 2021-12-17 10:56:06 · 1212 阅读 · 0 评论 -
LeetCode本地测试新建class模板
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end#parse("File Header.java")import org.junit.jupiter.params.ParameterizedTest;import org.junit.jupiter.params.provider.MethodSource;import java.util.List;import java.uti..原创 2021-10-18 14:47:37 · 157 阅读 · 0 评论 -
Java集合
Java集合泛型编程通常情况下集合中可以存放不同类型的对象,是因为将所有对象都看做Object类型放入的,因此从集合中取出元素时也是Object类型,为了表达该元素真实的数据类型,则需要强制类型转换,而强制类型转换可能会引发类型转换异常。为了避免上述错误的发生,从Java5开始增加泛型机制,也就是在集合名称的右侧使用<数据类型>的方式来明确要求该集合中可以存放的元素类型,若放入其它类型的元素则编译报错。泛型只在编译时期有效,在运行时期不区分是什么类型。原理泛型的本质就是类型参原创 2021-08-08 21:54:43 · 558 阅读 · 0 评论 -
TypeScript Question Mark/问号 (?)
用于空值检查('undefined' and null)let account={id: 1} let deparmentid=account?.idconsole.log(deparmentid) // return id if an account is not null or undefined, else return undefinedlet account=null; let deparmentId=account??.idconsole.log(deparmentId) /..原创 2021-06-29 16:39:24 · 149 阅读 · 0 评论 -
Maven添加本地jar包
添加jar包到Maven本地库:mvn install::install-file -Dfile=/path/to/your/jar/file/jacob.jar -DgroupId=com.jacob -DartifactId=jacob -Dversion=1.20 -Dpackaging=jar -DgeneratePom=truepom.xml中添加依赖:<dependency> <groupId>com.jacob</groupId> &原创 2021-06-24 10:15:04 · 195 阅读 · 0 评论 -
Java核心类库(下)
Java核心类库(下)参加拉勾教育大数据训练营课程笔记Java异常机制Throwable类java.lang.Objectjava.lang.ThrowableAll Implemented Interfaces:SerializableDirect Known Subclasses:Error, Exception是所有Error,Exception的父类(超类)。Error是JVM遇到的无法解决的严重错误Exception是程序错误,或者偶然外在因素导致的错误,原创 2021-05-31 23:46:11 · 184 阅读 · 2 评论 -
Java核心类库(上)
Java核心类库(上)参加拉勾教育大数据训练营课程笔记学会查阅API文档,根据包索引,搜索等。常用类java.lang - 唯一一个Java虚拟机自动访问,所以System等不需要import就可以使用,例如:System, String等。java.util - 提供大量工具类和集合类等,例如:Scanner , List, Random等。java.io - 输入输出包,提供了文件读写,流读写等,例如:FileInputStream, FileOutputStream等。java.n原创 2021-05-23 14:33:01 · 521 阅读 · 0 评论 -
Java面向对象编程
参加拉勾教育大数据训练营课程笔记Java面向对象编程类和对象对象 - 现实生活中的具体的客观实体,Java语言中体现为内存中的一块区域类 - 抽象出具有相同特征和行为的多个对象的抽象描述。是蓝图,设计图类定义类的声明类名遵循Pascal命名 - 所有单词首字母大写,比如BigData,代码文件名与类名相同,比如BigData.javapublic class ClassName { }构造方法初始化类的成员变量(特征变量)与类名相同,无返回类型可以重载提供.原创 2021-05-09 22:21:29 · 185 阅读 · 2 评论 -
Java语言基础
参加拉勾教育大数据训练营课程笔记原创 2021-04-22 20:12:02 · 99 阅读 · 0 评论 -
Nginx configuration for vue-router in history mode
nginx configuration for vue-router in history modeHere’s how I did it according to the official documentlocation / { root /webapp_home; try_files $uri $uri/ /index.html;}You can refer t...转载 2018-05-15 23:53:55 · 408 阅读 · 0 评论 -
Openjfx Hello World
Create JavaFX Application project In IntelliJ.Right click on project folder, then click Add Framework Support...In the dialog window, choose Maven, hit OKEdit pom.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.or.原创 2020-07-09 18:03:42 · 352 阅读 · 0 评论 -
数据结构与算法复习-C语言回顾
C语言数组定义一维数组类型符 数组名[常量表达式];int a[10];int b[5] = {1, 2, 3, 4, 5};void func(int n){ int a[2 * n];}指定数组为静态static存储方式,则不能用“可变长数组”static int a[2 * n]; // 不合法,a数组指定为`static`存储方式指针存储地址的变量:类...原创 2019-10-06 22:21:14 · 453 阅读 · 0 评论 -
Python Ali Mirror
Create ~/pip/pip.ini[global] index-url = http://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com原创 2020-09-17 14:04:58 · 207 阅读 · 0 评论 -
Python Create EPUB
import loggingfrom ebooklib import epubimport urllib3import certififrom lxml import htmlimport relog = logging.getLogger(__name__)log.setLevel(logging.INFO)log_handler = logging.StreamHandler()formatter = logging.Formatter('%(asctime)s - %(level原创 2020-06-23 10:58:37 · 714 阅读 · 0 评论 -
Python Word Automation
# generate.pyimport win32com.client as win32from datetime import datetime, dateimport reimport osimport sysimport jsonimport loggingfrom enumerations import *logger = logging.getLogger(__name__)log_formater = logging.Formatter(fmt='%(asctime)s -原创 2020-06-05 11:02:04 · 373 阅读 · 0 评论 -
Fun with Sorting Algorithms
About the Author: Alex, loves programming, reading, cooking and bikingCode'''sort.py'''import randomimport copydef insertion_sort(array: tuple): ''' it's like sort a hand of pokers b...原创 2018-11-02 22:08:15 · 165 阅读 · 0 评论 -
Sublime Java Build -在Sublime中编译执行Java程序
{ "shell_cmd": ["javac", "$file_name", "&&", "java", "$file_base_name"], "shell": true, "working_dir": "$file_path", "selector&qu原创 2018-10-30 21:13:57 · 878 阅读 · 0 评论 -
Sublime列对齐插件
演示:源码:import sublimeimport sublime_pluginclass AlignColCommand(sublime_plugin.TextCommand): def run(self, edit): most_right_pos = max(self.get_pos(self.view.sel())) for regio...原创 2018-10-29 21:01:46 · 1823 阅读 · 0 评论 -
Count Business Days in A Month using Python
from datetime import date, timedeltaimport jsonPUBLIC_HOLIDAYS = (1, 3, 7)today = date.today()one_day = timedelta(days=1)first_of_month = today.replace(day=1)holidays = [date(year=today.year, m...原创 2018-07-18 14:23:10 · 218 阅读 · 0 评论 -
Python Logging Setup
import loggingLOG_FMT = '[%(levelname)s] %(asctime)s: %(message)s'LOG_DATE_FMT = '%Y-%m-%d %H:%M:%S'logging.basicConfig(filename='search_results.log', format=LOG_FMT, datefmt=LOG_DATE_FMT, level=l...原创 2018-07-17 16:35:56 · 900 阅读 · 0 评论