视频: 需要安装: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
先来看看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
1.生成指定形状0-1之间的随机数 :np.random.random()和np.random.rand() 注意:np.random.random()如果要生成多维数据时需要传入一个数组,而np.random.rand()可以直接传入 #生成0-1之间的随机数 import numpy as np ...
分类:
其他好文 时间:
2020-07-06 20:19:54
阅读次数:
63
已有方法rand7 可生成 1 到 7 范围内的均匀随机整数,试写一个方法 rand10生成 1 到 10 范围内的均匀随机整数。 不可使用系统的Math.random()方法 样例 1: 输入:1 输出:[7] 样例 2: 输入:2 输出:[8,4] 样例 3: 输入:3 输出:[8,1,10] ...
分类:
其他好文 时间:
2020-07-06 20:03:38
阅读次数:
53
NumPy 的常用数据类型 np.random 随机数模块 ...
分类:
其他好文 时间:
2020-07-06 13:08:16
阅读次数:
49