关于JVM,也许你听过这些术语:年轻代(新生代)、老年代、永久代、minor gc(young gc)、major gc、full gc 不要急,先上图,这是jvm 堆内存结构图 仔细的你发现了 图中有些分数8/10和1/10,这是默认配置下各个代内存分配比例。 举个栗子: 假如总heap max分 ...
分类:
其他好文 时间:
2020-07-09 12:00:19
阅读次数:
197
视频: 需要安装:gl-transitions、regl-transitio、regl、gl-shader import GLTransitions from 'gl-transitions'; import createREGLTransition from 'regl-transition'; ...
分类:
其他好文 时间:
2020-07-09 01:12:32
阅读次数:
93
一:常用API 1,BigDecimal精确计算,使用字符串构造方法.加add减subtract乘multiply除divide 2,Math运算,random随机0到1 ,round四舍五入 3,System, exit终止当前的虚拟机,currentTimeMillis当前时间毫秒值 二:集合 ...
分类:
编程语言 时间:
2020-07-09 00:55:09
阅读次数:
82
爬取素材库。直接存入mysql数据库。 包含html源码直接存入数据库需要的转义函数。 替换掉源码中的html注释语句 import re import requests import random import time from bs4 import BeautifulSoup import p ...
分类:
数据库 时间:
2020-07-08 23:04:25
阅读次数:
80
图片验证码生成器 from PIL import ImageDraw from PIL import ImageFont from PIL import Image import random class CheckCode: def __init__(self, width=242, height ...
分类:
其他好文 时间:
2020-07-08 22:53:13
阅读次数:
156
Hello and Welcome to the first part of an exciting series of blog posts where you will learn how to build an end-to-end full stack polling app similar ...
分类:
移动开发 时间:
2020-07-08 19:54:59
阅读次数:
69
问题起因: ONLY_FUll_GROUP_BY的意思是:对于GROUP BY聚合操作,如果在SELECT中的列,没有在GROUP BY中出现,那么这个SQL是不合法的,因为列不在GROUP BY语句中,也就是说查出来的列必须是GROUP BY之后的字段,或者这个字段出现在聚合函数里面。 这个sql ...
分类:
数据库 时间:
2020-07-08 19:34:13
阅读次数:
114
先来看看random.randint()方法: import random for n in range(5): for i in range(10): print(random.randint(1,5),end=' ') print() #运行结果 1 5 5 3 3 1 3 1 5 2 4 4 ...
分类:
其他好文 时间:
2020-07-08 13:29:14
阅读次数:
51
RAM的原理简单学习 DDR是RAM的一种,RAM常见的类型有SRAM,SDRAM,DDR他们的共同特点是,随机存储意味着读写速度快,掉电后数据丢失,所以常用来存储程序中的变量。 SRAM 静态随机存储器英文是static random-access memory 就是保持上电就可以保存数据而不需要 ...
分类:
其他好文 时间:
2020-07-07 23:35:55
阅读次数:
87
package org.springframework.security.oauth2.common.util; import java.security.SecureRandom; import java.util.Random; /** * Utility that generates a ra ...
分类:
其他好文 时间:
2020-07-07 19:53:13
阅读次数:
46