` /** * @Description: base64字符串转化成图片 * @Param: * @return: * @throws Exception * @author: hw * @date: 2021/4/12 15:45 */ public static boolean Generate ...
分类:
其他好文 时间:
2021-04-13 12:22:14
阅读次数:
0
1、includes()、startsWith()、endsWith()2、repeat()3、模板字符串(template string)1、includes()、startsWith()、endsWith()includes():返回布尔值,表示是否找到了参数字符串。startsWith():返 ...
分类:
其他好文 时间:
2021-04-13 12:20:52
阅读次数:
0
Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better tha ...
分类:
编程语言 时间:
2021-04-13 12:03:32
阅读次数:
0
Python 中的 numpy 包 和 pandas 包都能够计算均值、方差等,本文总结一下它们的用法。 #1. Numpy 计算均值、方差、标准差 一般的均值可以用 numpy 中的 mean 方法求得: >>> import numpy as np >>> a = [5, 6, 16, 9] > ...
分类:
编程语言 时间:
2021-04-13 12:00:51
阅读次数:
0
首先,先说结论: 记住三个要点: 1、s == null是一定要判断的,而且一定要放到最先判断的位置 2、s.isEmpty() 和 s.length() == 0 完全等价 3、要剔除空格,请用 trim()方法 public void test(String s){ //最基本的判空,安全方法 ...
分类:
编程语言 时间:
2021-04-13 11:59:54
阅读次数:
0
#coding:utf-8 import xlrd,requests file_name = r"F:\pythonScript\map_dp\data_center\data_config\second_disaster_of_agriculture_and_natural_gas.xls" wo ...
分类:
编程语言 时间:
2021-04-13 11:59:05
阅读次数:
0
前面,我们学习了文件的读(read)和写(write),都是用open()方法打开文件并获取文件流。然后在读或写操作完成后进行流的关闭(close).有时候,最后的流关闭很容易被忽略,从而导致了内存泄漏的问题。 今天要说的就是with,用于自动关闭流。 用法:with open(file, mode ...
分类:
编程语言 时间:
2021-04-13 11:57:38
阅读次数:
0
明显的格式化字符串漏洞,没什么好说的 通过%x找到偏移为8 还是改got表,但是这题没有后门函数,将got表泄露后得到libc基址 然后找到system和bin/sh的地址即可 但我就不明白了他们咋就搞到onegadget的 然后利用格式化字符串漏洞时原来pwntools自带工具的,震惊我一年 使用 ...
分类:
其他好文 时间:
2021-04-13 11:52:03
阅读次数:
0
String removeDuplicateLetters(String s) { Stack<Character> stk = new Stack<>(); // 维护一个计数器记录字符串中字符的数量 // 因为输入为 ASCII 字符,大小 256 够用了 int[] count = new i ...
分类:
其他好文 时间:
2021-04-13 11:42:41
阅读次数:
0
求字符串出现次数最多字符 let str = "aaabbccccddddd" function longSre(str) { let zifu; let max = 0; let arr = str.split('') let map = new Map() for (let i = 0; i < ...
分类:
编程语言 时间:
2021-04-13 11:42:07
阅读次数:
0