oracle private static final String URL = "jdbc:oracle:thin:@localhost:1521:orcl";private static final String USERNAME = "用户名"; private static final St ...
分类:
数据库 时间:
2020-01-14 13:33:48
阅读次数:
121
一:首先进入项目目录中安装 install vue-awesome-swiper@2.6.7 --save 2.使用 全局挂载: import Vue from 'vue' import VueAwesomeSwiper from 'vue-awesome-swiper' // require st ...
分类:
其他好文 时间:
2020-01-14 11:30:18
阅读次数:
403
来源:https://www.nowcoder.com/discuss/57978 如何消除隐式转换? 面经解释:使用explicit关键字进行修饰 自己补充:explicit关键字修饰,一般来说加了肯定比不加好,主要用来针对隐式的强转 例子: class A{ public: A(const st ...
分类:
其他好文 时间:
2020-01-13 16:05:12
阅读次数:
76
go语言优势: Go 极其地快。其性能与 Java 或 C++相似。在我们的使用中,Go 一般比 Python 要快 30 倍。以下是 Go 与 Java 之间的基准比较: 原因 2:语言性能很重要 对很多应用来说,编程语言只是简单充当了其与数据集之间的胶水。语言本身的性能常常无关轻重。 但是 St ...
分类:
编程语言 时间:
2020-01-12 20:00:30
阅读次数:
113
懒汉模式与饿汉模式:单例模式,仅有仅用一个对象! 饿汉模式:单例类的字节码文件加载到方法区的时候 单例(唯一对象)就被new出来了。 Public class Singleton{ public static int num=10; Private Singleton(){ } Private st ...
分类:
其他好文 时间:
2020-01-12 13:21:56
阅读次数:
58
题目大意:对一个链表进行去重操作,如果一个数字的绝对值已经出现过了,就取出这个节点,组成一个新的链表。 分析:直接模拟就好了。刚开始的时候对五位数是用string进行处理的,然后tle,然后还有dfs1e5次导致re。好迷啊这个题,写了一个多小时。有毒!!! 代码: #include<bits/st ...
分类:
其他好文 时间:
2020-01-11 20:36:04
阅读次数:
69
CPU状态信息us,sy,ni,id,wa,hi,si,st含义 https://blog.csdn.net/weixin_34075268/article/details/92413101 Linux中在使用top命令的时候会看到这么一行: 里面的各个值分别是什么意思呢? 今天被问到这个问题,发现 ...
分类:
其他好文 时间:
2020-01-11 17:02:13
阅读次数:
309
HTTP工具类,重构封装了常用的3种协议:json、x-www-form-urlencoded、multipart/form-data支持文件上传。 public class Http { public static string Get(string endPoint, Dictionary<st ...
分类:
Web程序 时间:
2020-01-11 17:01:29
阅读次数:
138
""" base 07 写函数,计算传入字符串中【数字】、【字母】、【空格] 以及 【其他】的个数 """ def demo(s): d = 0 a = 0 s = 0 e = 0 st = input('输入字符串') for i in st: if i.isdigit() is True: d ...
分类:
其他好文 时间:
2020-01-11 15:21:28
阅读次数:
73
Final standings Solved: 2 out of 7 ac:A题水题 b题思维题 b题: B. Diagonal Walking v.2 time limit per test 1 second memory limit per test 256 megabytes input st ...
分类:
其他好文 时间:
2020-01-11 15:10:37
阅读次数:
94