function func1(a, b, c) { console.log(arguments); console.log(arguments[0]); // expected output: 1 console.log(arguments[1]); // expected output: 2 co ...
分类:
其他好文 时间:
2021-04-06 15:01:27
阅读次数:
0
一、类型转换 由于java是强类型语言。所以要进行有些运算的时候,需要用到类型转换。 低——————————————————————————>高 byte,short,char ——> int ——> long ——> float ——> double 运算中,不同类型的数据先转化为同一类型,然后进 ...
分类:
编程语言 时间:
2021-04-06 14:46:00
阅读次数:
0
LeetCode第235场周赛题解 截断句子 按照题目要求模拟即可,把单词读入到vector中,然后按要求拼接即可 class Solution { public: string truncateSentence(string s, int k) { vector<string> a; string ...
分类:
其他好文 时间:
2021-04-06 14:34:00
阅读次数:
0
本文主要介绍了vue前端打包和docker部署相关内容,到目前为止,crudapi-admin-web代码已经完成,后续会继续优化代码,文档也会持续更新。每一篇文章对应的代码,都打上了tag,命名规则为t1,t2..., 欢迎下载代码学习和交流。 ...
1.main函数快捷键 psvm 2.system.out.printLn sout(相当于eclipse syso) 3.ctrl + alt + t == try catch,意识是surround with try catch, 但是如果要直接写可以"".try直接会提示 4.alt+inse ...
分类:
其他好文 时间:
2021-04-05 12:43:06
阅读次数:
0
这个问题主要是因为定义类的时候在类名后边加了个括号(); `public class Hello { public static void main(String[] args) { System.out.print("Hello World!"); System.out.println();//换 ...
分类:
其他好文 时间:
2021-04-05 12:26:42
阅读次数:
0
一、 问题抛出 在KEIL同一个工程只能有一个main函数,因此这个决定了我们的bootloader 和 app 程序肯定不可能一次编译生成。(当然我个人感觉这里是可以一次生成的,只是我们的链接脚本 和 makefile 需要比较精通)但是在linux中我们通常是把uboot 放在 norflash ...
分类:
移动开发 时间:
2021-04-02 13:40:28
阅读次数:
0
#!/bin/bash hostname=192.168.170.20 rm -rf /etc/pki/CA &>/dev/null mkdir -p /etc/pki/CA/private && cd /etc/pki/CA yum -y install expect &>/dev/null #C ...
分类:
Web程序 时间:
2021-04-02 13:31:17
阅读次数:
0
A. x 很容易可以想到分解质因数,使用并查集把相同因子的放一块儿,计算出最终有 \(cnt\) 个块,答案为 \(2^{cnt}-2\) (可以理解为为每个块都有左集合与右集合两个选择,而最终出现2个空集的情形,需要从答案中减去) 然鹅,事情并没有这么简单~ 因为 \(a_i\) 上界为 \(10 ...
分类:
其他好文 时间:
2021-04-02 13:15:06
阅读次数:
0
简单的模拟 #include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; int sum=0,max_loss=0,max_index; for(int i=0;i<n;i++){ int temp_sum ...
分类:
移动开发 时间:
2021-04-02 13:12:46
阅读次数:
0