M – 13 括号平衡

  • Post author:
  • Post category:其他

I’m out of stories. For years I’ve been writing stories, some rather silly, just to make simple problems look difficult and complex problems look easy. But, alas, not for this one. You’re given a non …

继续阅读 M – 13 括号平衡

pandas按列、行求和

  • Post author:
  • Post category:其他

用透视表创建的表格 df_pt = pd.pivot_table(table,index=["渠道"],values =['推广', 'E类', '0-17岁', '18-23岁', '24-30岁', '30岁+', '疾病哺乳类', '删除类', 'B类', '男性'],aggfunc = np.sum) 现在想要对L,Y渠道的每个类别的数据求和,即按行求和 df_pt["总和"] =df_p…

继续阅读 pandas按列、行求和

杨辉三角的解题思路–以Java为例

  • Post author:
  • Post category:java

杨辉三角 i\j 0 1 2 3 0 1 1 1 1 2 1 2 1 3 1 3 3 1 调试的错误就是编程给你最好的东西,因为在每个错误上面都标志着前进的一步。杨辉三角是学习编程的入门级 for 嵌套循环。思路理顺,自然而然就解决了。 杨辉三角是由一定规律的数字排列而成,他的基本特性是每一行的第一个数字和最后一个数字为1,其他的数字是其正上方的数值与左上角数值之和。如上图所示。 public c…

继续阅读 杨辉三角的解题思路–以Java为例

Global Mapper如何加载在线地图

  • Post author:
  • Post category:其他

Global Mapper是一个比较好用的GIS数据处理软件,官网: http://www.bluemarblegeo.com/products/global-mapper.php ,除使用ArcGIS软件的处理数据外,这个软件也常用来处理数据,它不会像ArcGIS等大型商业GIS软件那样臃肿。 但是,以前它的颜值确实有点低,如下: 新的版本颜值有所提升,风格与国外开源软件类似,也和sketchu…

继续阅读 Global Mapper如何加载在线地图

Hutool 实体类验证工具

  • Post author:
  • Post category:其他

Hutool 工具包封装了很多好用的工具 但是 ValidationUtil 这个在参考文档介绍中没有发现该工具类 在接口文档中存在 前提 我使用的的Hutool工具类版本如下 <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <…

继续阅读 Hutool 实体类验证工具

自动化测试-selenium IDE使用

  • Post author:
  • Post category:其他

selenium IDE结合浏览器提供脚本的录制,回放以及编辑脚本功能,以及元素的定位,可以使用selenium IDE将录制的脚本生成相应的带单元测试框架的自动化测试脚本。 selenium具有录制功能,可以web回放,录制的脚本可以转换为java、python、ruby、php等多种脚本语言。selenium IDE是Firefox的一个插件,依附于Firefox。所以需要先安装Firefox…

继续阅读 自动化测试-selenium IDE使用

java—数组的3种声明方式

  • Post author:
  • Post category:java

1.数组元素类型[] 数组名 = new 数组元素类型[数组元素个数]; 例如:int类型 int[] arr= new int[5]; //赋值 arr[0]=1; arr[1]=2; //。。。以此类推 2.数组元素类型[] 数组名 = new 数组元素类型{元素1,元素2,元素3…}; 例如:int类型 //直接赋值 int[] arr= new arr[]{1,2,3,4,5}; 3.数组…

继续阅读 java—数组的3种声明方式

vue–富文本插件Quill(一)基础使用

  • Post author:
  • Post category:vue

简介 Quill是一个很流行的富文本编辑器,github上star大约21k: github: https://github.com/quilljs/quill/ 官网: https://quilljs.com/ 简单demo <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8">…

继续阅读 vue–富文本插件Quill(一)基础使用

fatal: The current branch venueCamera has no upstream branch. To push the current branch and set the

  • Post author:
  • Post category:其他

git创建分支后第一次push到远程分支时报出一下错误 fatal: The current branch venueCamera has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin venueCamera 原因: …

继续阅读 fatal: The current branch venueCamera has no upstream branch. To push the current branch and set the

SpringBoot+EHcache实现缓存

  • Post author:
  • Post category:其他

撰文背景 公司开发中的一个驱动模块,需要用到本地缓存,来提高驱动模块的访问速度和性能,然后就想到了Ehcache缓存,Ehcache是Hibernate 中默认的CacheProvider,hibernate就是使用Ehcache 来实现二级缓存的。本质上来说Ehcache是一个缓存管理器,不仅仅可以和Hibernate配合实现缓存,也可以和其他框架比如spring boot 结合,作为一个缓存管…

继续阅读 SpringBoot+EHcache实现缓存