摘要: //调用远程服务器的shell脚本//ip:远程服务器的ip地址//username:远程服务器的登录用户名//port:远程服务器的登录端口号//cmd:登录之后的命令 public Response<Boolean> runRemoteShell(String ip,String usernam 阅读全文
posted @ 2020-03-12 22:36 不是公子的小白 阅读(990) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd def csv_to_xlsx_pd(): #csv文件名,假若csv文件中含有中文则需加上encoding='gb18030' csv = pd.read_csv('test.csv', encoding='gb18030', engine='python' 阅读全文
posted @ 2020-03-12 22:33 不是公子的小白 阅读(1601) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import os #设定文件路径 path='test/' fileList=os.listdir(path) n = 0 for i in fileList: # 设置旧文件名(就是路径+文件名) oldname = path + os.sep + 阅读全文
posted @ 2020-03-12 22:32 不是公子的小白 阅读(1844) 评论(0) 推荐(0) 编辑
摘要: GROUP_CONCAT()函数可以将分组后多条记录的同一字段的值,拼接成一条记录返回。但是在默认情况下,这个最大拼接长度是有限制的,导致结果不完整。 可以使用sql查询最大长度: show variables like 'group_concat_max_len'; 可以使用sql修改最大长度: 阅读全文
posted @ 2020-03-12 22:28 不是公子的小白 阅读(341) 评论(0) 推荐(0) 编辑
摘要: Mysql数据库中通常使用Like关键字进行模糊查询,Like关键字通常用在where条件查询子句中并且配合%_使用 %表示任意个字符,_表示单个字符 '%a' //以a结尾的数据 'a%' //以a开头的数据 '%a%' //含有a的数据 '_a_' //三位且中间字母是a的 '_a' //两位且 阅读全文
posted @ 2020-03-12 22:27 不是公子的小白 阅读(966) 评论(0) 推荐(0) 编辑
摘要: public boolean isMobile(String str) { Pattern p = null; Matcher m = null; boolean b = false; String s2="^[1](([3|5|8][\\d])|([4][5,6,7,8,9])|([6][5,6] 阅读全文
posted @ 2019-11-15 15:56 不是公子的小白 阅读(2306) 评论(0) 推荐(0) 编辑
摘要: //接口定义在Controller层,接口实现在Service层package com.xolo.core.controller; //包名 import com.xolo.core.entity.Wechat; //实体名 import com.xolo.core.request.WechatRe 阅读全文
posted @ 2019-11-13 16:41 不是公子的小白 阅读(1023) 评论(0) 推荐(0) 编辑
摘要: package com.xolo.core.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import 阅读全文
posted @ 2019-11-13 16:02 不是公子的小白 阅读(2456) 评论(0) 推荐(0) 编辑
摘要: 每个表都需要设定一个主键id作为唯一标识 每个表都需要设定一个创建时间create_time和更新时间update_time create_time设为CURRENT_TIMESTAMP类型 update_time设为CURRENT_TIMESTAMP类型并勾选”根据当前时间戳更新“ 每个字段根据需 阅读全文
posted @ 2019-11-12 16:22 不是公子的小白 阅读(2252) 评论(0) 推荐(0) 编辑