<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> *{margin: 0;padding: 0;} ul,li{list-style: none;} img{border: none;} #scr ...
分类:
其他好文 时间:
2020-03-31 14:36:56
阅读次数:
62
一、random 模块 2.1 random 常用方法 import random print(random.random())#(0,1) float 大于0且小于1之间的小数 print(random.randint(1,3)) #[1,3] 大于等于1且小于等于3之间的整数 print(ran ...
分类:
其他好文 时间:
2020-03-30 23:08:15
阅读次数:
81
a=float(input()) b=float(input()) if(b==0): print("除零错误") else : print(round(a/b,2)) ...
分类:
其他好文 时间:
2020-03-30 21:53:11
阅读次数:
71
import random?print(random.random())#(0,1) float 大于0且小于1之间的小数?print(random.randint(1,3)) #[1,3] 大于等于1且小于等于3之间的整数?print(random.randrange(1,3)) #[1,3) 大 ...
分类:
其他好文 时间:
2020-03-30 19:58:08
阅读次数:
59
1. js 提供了两种可以将 数字型 的字符串 转 数字 的方法 parseInt()和parseFloat(), parseInt() 是转成整数, 但 向下去整数 , parseFloat() 是转成浮点型 2. 使用方法一样 let a = parseInt(" 2.3"); // 结果是 a ...
分类:
Web程序 时间:
2020-03-30 19:46:18
阅读次数:
71
一、时间的三种形态 1.时间戳(timestamp):通常来说,时间戳表示的是从1970年1月1日00:00:00开始按秒计算的偏移量。我们运行“type(time.time())”,返回的是float类型。 print(time.time()) # 显示从1970年1月1日00:00:00开始到现 ...
分类:
其他好文 时间:
2020-03-30 19:40:22
阅读次数:
65
目录 Mysql数据类型数据库的操作SQL命令 表结构的创建SQL命令 表结构的修改SQL命令 表数据的增删改查where聚合函数group分组limit限制记录连接 Mysql数据类型 数值 整形 int tinyint 浮点型 float double 表示的精度不同 float 6位有效,do ...
分类:
数据库 时间:
2020-03-30 18:03:53
阅读次数:
93
random模块 print(random.random()) #(0,1) float 大于0且小于1之间的小数 print(random.randint(1, 3)) # [1,3] 大于等于1且小于等于3之间的整数 print(random.randrange(1, 3)) # [1,3) 大 ...
分类:
其他好文 时间:
2020-03-30 16:06:18
阅读次数:
55
public float speed = 3; public float angleval = 15; 注意要加上public才能在unity中输入调整。 1、用鼠标控制物体旋转(下面是,鼠标右键控制物体沿着y轴正方向旋转,顺时针) float angleval = 15; void Start() ...
分类:
移动开发 时间:
2020-03-30 11:28:22
阅读次数:
122
void Update() { float h=Input.GetAxis("Horizontal")*speed*Time.deltaTime; float v=Input.GetAxis("Vertical")*speed*Time.deltaTime; transform.Translate( ...
分类:
移动开发 时间:
2020-03-29 14:14:57
阅读次数:
104