用python写数据库连接时要用到数据连接池于是就想到了DBUtils ,这个简单pip install DBUtile 安装完后写代码测试一下 from DBUtils.PooledDB import PooledDB Traceback (most recent call last): File ...
分类:
数据库 时间:
2021-04-02 13:02:54
阅读次数:
0
一、文本与Base64 1、文本转Base64字符串 private static string StrToBase64(string str) { byte[] b = Encoding.Default.GetBytes(str); //转成 Base64 形式的 System.String st ...
https://blog.csdn.net/weixin_33672109/article/details/92378342 #!/bin/bash if [ "$#" -ne 2 ] ; then echo "USAGE: $0 -f server_list_file cmd" exit -1 f ...
分类:
系统相关 时间:
2021-04-02 13:01:20
阅读次数:
0
1.获取后端返回的二进制流//安装xlsx插件 npm install xlsx -s //在页面引入xlsx impory XLSX from 'xlsx' //如果是axios请求,responseType需要设置为arraybuffer //获取并处理返回的信息 let data = new ...
分类:
其他好文 时间:
2021-04-02 12:55:54
阅读次数:
0
为了完成不同计算机或网络或架构之间的成功通信,国际标准化组织(ISO,1984)提出了OSI七层模型。 OSI(Open System Interconnect),即开放式系统互联。OSI网络模型分为七层:应用层,表示层,会话层,传输层,网络层,数据链路层,物理层。 应用层 应用层由网络应用程序使用 ...
分类:
其他好文 时间:
2021-04-01 13:48:59
阅读次数:
0
/* * 接口的使用 * 1.接口使用上也满足多态性 * 2.接口,实际上就是定义了一种规范 * 3.开发中,体会面向接口编程! */ public class USBTest { public static void main(String[] args) { Computer com = new ...
分类:
其他好文 时间:
2021-04-01 13:43:59
阅读次数:
0
BigDecimal data1 = new BigDecimal("1"); BigDecimal data2 = new BigDecimal("0.01"); if (data1.compareTo(data2) < 0) { System.out.println("第二位数大!"); } i ...
分类:
其他好文 时间:
2021-04-01 13:37:22
阅读次数:
0
1、现象 在 /etc/profile里加了环境变量,但是重启这个环境变量未加入成功 2、原因 可能是被其他加载环境变量的脚本刷掉了 参考:https://blog.csdn.net/my_wings/article/details/102617631 3、解决 在.bashrc里添加 vim ~/ ...
分类:
系统相关 时间:
2021-04-01 13:12:59
阅读次数:
0
一、filter,map,flatmap练习: 1.读文本文件生成RDD lines lines = sc.textFile('file:///home/hadoop/word.txt') lines.collect() 2.将一行一行的文本分割成单词 words words=lines.flatM ...
分类:
其他好文 时间:
2021-04-01 13:07:18
阅读次数:
0
Scanner对象 通过Scanner类来获取用户的输入 基本语法 Scanner s = new Scanner(System.in); 通过Scanner类的next()与nextLine()方法获取输入的字符串,在读取我们一般需要使用hasNext()与hasNextLine()判断是否还有输 ...
分类:
其他好文 时间:
2021-04-01 12:56:21
阅读次数:
0