今天学到了什么?今天学习了有关java的算术运算符,‘+’,‘-’,‘*’,’/‘,’%‘。注意’/‘运算符运算,若是整型定义,则所得结果无小数点。但浮点数运算的结果有精度误差,因此若要比较两浮点数是否相等,应用两个浮点数之差的绝对值是否小于一个很小的数。float为32位,double为64位。还 ...
分类:
编程语言 时间:
2020-07-08 23:02:42
阅读次数:
80
1 public class Text { 2 3 public static void main(String args[] ){ 4 float x=123.45; 5 System.out.println(x); 6 } 7 } 不加F默认是double类型,取值范围从大范围(double)向 ...
分类:
编程语言 时间:
2020-07-08 23:01:40
阅读次数:
83
from functools import reduce import re def remove_addsub(exp): s=re.findall("[+-]?\d+(?:\.\d+)?",exp) return reduce(lambda a,b:float(a)+float(b),s) s= ...
分类:
其他好文 时间:
2020-07-08 22:51:48
阅读次数:
68
from docx import Document from docx.shared import Pt,Inches #Pt指镑(int类型),Inches指英寸(float类型) w=Document(r'D:\word练习\练习.docx') for paragraph in w.paragr ...
分类:
其他好文 时间:
2020-07-08 22:51:25
阅读次数:
65
说明 h5提供了LocalStorage本地存储能力,但是如果直接使用不是很方便。所以我封装了以下几种类型,达到与其他类型几乎相同的使用方式。 BaseStorage: 存储类的基类。 LocalValue :数值类型,存储float,int,string等 LocalList :列表类型相当于数组 ...
分类:
其他好文 时间:
2020-07-08 21:29:27
阅读次数:
66
1.css中定位相关样式属性为 C A:float B:text-indent C:position D:visibility 解析:CSS 定位 (Positioning) 属性允许你对元素进行定位。 float 属性定义元素在哪个方向浮动。 text-indent 属性规定文本块中首行文本的缩进 ...
分类:
其他好文 时间:
2020-07-08 19:58:04
阅读次数:
113
源代码实现 - octrees(1)- insert objects 基于 RTCD-7.3.a Octrees进行源代码实现。 insert spheres #include <iostream> struct Point { float x{0.0f}; float y{0.0f}; float ...
分类:
其他好文 时间:
2020-07-08 15:27:50
阅读次数:
35
第1章 Pandas基础 import pandas as pd import numpy as np 查看Pandas版本 pd.__version__ '1.0.3' 一、文件读取与写入 1. 读取 (a)csv格式 df = pd.read_csv('data/table.csv') df.h ...
分类:
其他好文 时间:
2020-07-08 15:07:37
阅读次数:
149
<div class="ipt-wrap clearfix"> <label>籍贯:</label> <div class="ipt-r"> <select class="sele-a" name="province"> <option value="0">请选择</option> <volist ...
分类:
其他好文 时间:
2020-07-08 14:58:12
阅读次数:
114
1. display和visiblity 对于 CSS 里的 visibility 属性,通常其值被设置成 visible 或 hidden。 visibility: hidden 相当于 display:none,能把元素隐藏起来,但两者的区别在于: 1、display:none 元素不再占用空间 ...
分类:
Web程序 时间:
2020-07-08 11:45:58
阅读次数:
83