码迷,mamicode.com
首页 >  
搜索关键字:calculate    ( 959个结果
java8新特新
一、接口的默认方法 Java 8允许我们给接口添加一个非抽象的方法实现,只需要使用 default关键字即可,这个特征又叫做扩展方法,示例如下: interface Formula { double calculate(int a); default double sqrt(int a) { ret ...
分类:编程语言   时间:2020-04-19 22:28:00    阅读次数:69
HDoj 2056 Rectangles
Problem Description Given two rectangles and the coordinates of two points on the diagonals of each rectangle,you have to calculate the area of the in ...
分类:其他好文   时间:2020-04-15 13:51:02    阅读次数:82
结对项目--四则运算生成器(Java) 刘彦享+龙俊健
结对项目 四则运算生成器(Java) GitHub地址 合作者 刘彦享(3118005010) 龙俊健(3118005011) https://github.com/LYX708194/calculate 一、项目简介 说明 自然数:0, 1, 2, …。 真分数:1/2, 1/3, 2/3, 1/ ...
分类:编程语言   时间:2020-04-14 12:31:57    阅读次数:100
1001 A+B Format
1001 A+B Format (20分) Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unl ...
分类:其他好文   时间:2020-04-09 16:44:40    阅读次数:77
开发一个健壮的npm包
项目地址: "loan calculate utils" npm包的发布、更新查看上一篇文章 "开发一个基础的npm包" 目前我们的目录是这个样子: 接下来给项目添加 打包,忽视文件,ts声明文件,单元测试,eslint,README.md添加徽标。 打包 参考 "ramda" 打包思路,我们将要编 ...
分类:其他好文   时间:2020-04-03 00:57:08    阅读次数:77
如何测试嵌入式处理器的CPU使用率
https://www.embedded.com/how-to-calculate-cpu-utilization/ Simple example of a background loop. int main( void ) { SetupInterrupts(); InitializeModule ...
分类:其他好文   时间:2020-03-31 23:09:35    阅读次数:141
selenium - unittest一个简单的demo
待测文件: calculate.py文件1 class Count: 2 def __init__(self, a, b): 3 self.a = a 4 self.b = b 5 6 def add(self): 7 return self.a + self.b 使用unittest框架进行测试: ...
分类:其他好文   时间:2020-03-29 10:42:34    阅读次数:66
如何合理地估算线程池大小?
title: 如何合理地估算线程池大小? urlname: estimate the thread pool size reasonably author: 蒋小强 url: http://ifeve.com/how to calculate threadpool size/ category: [ ...
分类:编程语言   时间:2020-03-23 17:01:58    阅读次数:77
python,图形界面编程,tkinter,实现一个最简单的加法计算器的图形界面小程序
from tkinter import * def Calculate(): a1 = int(text1.get('1.0', END)) # 从行首取到行尾 a2 = int(text2.get('1.0', END)) a3 = a1 + a2 text3.delete('1.0', END) ...
分类:微信   时间:2020-03-19 21:30:20    阅读次数:246
c++ 计算两个矩形重叠面积 (粗略版)(c++ calculate the overlap area of two rectangles, a rough version)
在图像处理种,经常需要计算两个矩形的重叠面积,在 python 中,可以使用 shapely 包中的 Polygon 函数,但是到了 c++ 没有想象中的那么简单。 查阅了很多资料,基本上都是判断两个矩形是否包含来计算,但是两个矩形的相交情况太多了,每个方法我都担心考虑不全,所以想了一个在画布上画出 ...
分类:编程语言   时间:2020-03-16 20:29:24    阅读次数:70
959条   上一页 1 2 3 4 5 6 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!