类型转换 java是强类型语言,所以有些运算需要用到类型转换 byte,short,char->int->long->float->double public class Domn04 { public static void main(String[] args) { int i=128; byt ...
分类:
其他好文 时间:
2020-04-06 09:17:00
阅读次数:
87
flex布局 用以代替浮动的布局手段; 必须先把一个元素设置为弹性容器;//display:flex; 一个元素可以同时是弹性容器和弹性元素; 设为flex布局以后,子元素的float、clear和vertical-align属性将失效。 主轴:弹性元素排列的方向; 弹性容器的属性 1、flex-d ...
分类:
其他好文 时间:
2020-04-05 23:54:02
阅读次数:
110
一、Sql Server 保留几位小数的两种做法 数据库里的 float momey 类型,都会精确到多位小数。但有时候 我们不需要那么精确,例如,只精确到两位有效数字。 解决: 1. 使用 Round() 函数,如 Round(@num,2) 参数 2 表示 保留两位有效数字。 2. 更好的方法是 ...
分类:
数据库 时间:
2020-04-05 23:50:39
阅读次数:
101
八种基本数据类型对应八种包装类和它们的继承关系 基本数据类型对应的包装类 boolean Boolean byte Byte short Short int Integer long Long char Character float Float double Double 1. 包装类的共性: 多 ...
分类:
编程语言 时间:
2020-04-05 22:08:47
阅读次数:
91
众所周知,浮动模型是一种可视化格式模型。浮动的框可以左右移动(即:float:left;float:right),直到它的外边缘碰到包含框或另一个浮动框的边缘。浮动框不在文档的普通流中,所以文档的普通流中的块框表现得就像浮动框不存在似的。 .wrapper{ border:5px solid #00 ...
分类:
其他好文 时间:
2020-04-05 20:51:52
阅读次数:
95
题目描述: 方法:从后向前dp class Solution(object): def stoneGameIII(self, A): n = len(A) dp = [-float('inf')] * n for i in range(n-1,-1,-1): dp[i] = max(dp[i], s ...
分类:
其他好文 时间:
2020-04-05 20:12:32
阅读次数:
61
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>注册页面美化版</title> <style> .top{ float: left; width: 33%; height: 65px; } .amenu{ color: whit ...
分类:
其他好文 时间:
2020-04-05 18:35:34
阅读次数:
70
1、内置的 pow() 方法 pow(x,y) :等价于 x**y: pow(x,y,z):函数是计算x的y次方,如果z在存在,则再对结果进行取模,其结果等效于pow(x,y) %z 当 z 这个参数不存在时 x,y 不限制是否为 float 类型, 而当使用第三个参数的时候要保证前两个参数只能为整 ...
分类:
编程语言 时间:
2020-04-05 15:50:28
阅读次数:
77
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>网站首页美化版</title> <style> .top{ float: left; width: 33%; height: 65px; } .amenu{ color: whit ...
分类:
Web程序 时间:
2020-04-05 15:26:38
阅读次数:
406
python input函数 觉得有用的话,欢迎一起讨论相互学习~ " " " " " " 对于python的input函数需要从python2和python3两方面讲。 对于python3,通过input函数输入的所有内容都会作为str类型的字符串变量传入,只需要使用int和float进行强制类型 ...
分类:
编程语言 时间:
2020-04-05 13:32:41
阅读次数:
86