- educoder实训平台python顺序结构答案_Educoder Python顺序结构习题
weixin_39710660
1.正方形与等腰三角形组成的多边形的面积square_length=4triangle_h=2.6area_square=4*4area_triangle=(2.6*4)/2area_total=area_square+area_triangleprint(area_total)2.平抛小球与抛出点的距离G=9.8v0=5t=2s=v0*th=(G*t**2)/2d=(s**2+h**2)**0.
- [Moshi]认识新一代对Kotlin友好的JSON解析框架
天空光芒
为什么是Moshi切换到kotlin之后,在使用fastJSON时遇到了一些问题,经过网上的查询,要使fastJSON能够正常工作,需要额外添加kotlin-reflect依赖,感觉不是很爽。于是一通搜索之后,找到了著名的Square团队的又一个优秀的开源库——Moshi。它在允许使用传统的反射机制进行JSON序列化与反序列化的同时,也可以通过注解的方式在编译时生成解析类,不必引入2M+的refl
- python解最小二乘(least square)
HackerTom
机器学习数学scipynumpy最小二乘leastsquarepython
给定A∈Rd×nA\in\R^{d\timesn}A∈Rd×n、b∈Rdb\in\R^db∈Rd,求x=argminx∥Ax−b∥2x=\arg\min_x\parallelAx-b\parallel^2x=argminx∥Ax−b∥2。numpy和scipy都有相应的包,见[1,2]。需要注意的是,传入的A、b是按列向量排,即A是[d,n]形状的,bbb只有一个就是[d],多个就是[d,m]
- 【设计模式】结构型模式:桥接模式
KunQAQrz
意图将一个大类或一系列紧密相关的类拆分为抽象和实现两个独立的层次结构,从而能在开发时分别使用。问题有一个几何形状Shape类,从它能扩展出两个子类:圆形Circle和方形Square。希望对这样的类层次结构进行扩展以使其包含颜色,所以你打算创建名为红色Red和蓝色Blue的形状子类。但是由于你已有两个子类,所以总共需要创建四个类才能覆盖所有组合,例如蓝色圆形BlueCircle和红色方形RedSq
- MATLAB生成mif文件
梦梦梦梦子~
matlab人工智能算法
MATLAB代码%参数设置N=4096;%数据点数量t=linspace(0,2*pi,N);%时间向量width=12;%位宽%正弦波sine_wave=2.5*sin(t)+2.5;%幅度在0到5之间%三角波tri_wave=5-abs(mod(t/(2*pi)*4,2)-1);%方波square_wave=2.5*(square(t)+1);%将范围调整为0到5之间%将波形数据保存为MIF文
- MATLAB生成COE文件
梦梦梦梦子~
matlab人工智能算法
MATLAB代码%参数设置N=4096;%数据点数量t=linspace(0,2*pi,N);%时间向量width=12;%位宽%正弦波,幅度在0到5之间sine_wave=2.5*sin(t)+2.5;%三角波,幅度在0到5之间tri_wave=5*(1-abs(mod(t/(2*pi)*4,2)-1));%方波,幅度在0到5之间square_wave=2.5*(square(t)+1);%将范
- 【Android】最好用的网络库:Retrofit
愿相知
网络retrofit
最好用的网络库:Retrofit文章目录最好用的网络库:RetrofitRetrofit的基本用法Retrofit的使用逻辑Retrofit的基本操作处理复杂的接口地址类型进阶删除提交header中指定参数Retrofit构建器的最佳写法Retrofit的使用封装Retrofit的基本用法Retrofit是一款由Square公司开发的网络库,但是它和OkHttp的定位完全不同。OkHttp侧重的是
- 【设计模式之工厂方法模式——积木工厂】
ao-it
设计模式设计模式工厂方法模式java
题目描述小明家有两个工厂,一个用于生产圆形积木,一个用于生产方形积木,请你帮他设计一个积木工厂系统,记录积木生产的信息。输入描述输入的第一行是一个整数N(1≤N≤100),表示生产的次数。接下来的N行,每行输入一个字符串和一个整数,字符串表示积木的类型。积木类型分为“Circle”和“Square”两种。整数表示该积木生产的数量输出描述对于每个积木,输出一行字符串表示该积木的信息。输入示例3Cir
- 用Golang实现图形面积计算
哈温最可爱
golang开发语言后端
计算正方形面积packagemainimport"fmt"typesquarestruct{sidefloat32}func(ssquare)area()float32{returns.side*s.side}funcmain(){s:=square{side:10}fmt.Printf("%T\n",s)fmt.Println(s.area())}计算正方形、圆形、矩形面积,写一个通用的函数in
- css加载中动画
永远的WEB小白
csscssjavascript前端
#loader.square:nth-child(5n+1){background:#0F9;animation-delay:0s;}#loader.square:nth-child(5n+2){background:#0CF;animation-delay:0.1s;}#loader.square:nth-child(5n+3){background:#93F;animation-delay:0
- C语言之计算正方形的周长
m0_61635718
C语言算法c语言开发语言数据结构算法
目录一代码实现二时空复杂度A.时间复杂度(TimeComplexity):B.空间复杂度(SpaceComplexity):一代码实现#include//定义一个函数来计算正方形的周长doublecalculate_square_perimeter(doubleside_length){//正方形的周长等于边长的四倍return4*side_length;}intmain(){doubleside
- 中科星图——影像卷积核函数Kernel之gaussian高斯核函数核算子、Laplacian4核算子和square核算子等的分析
此星光明
中科星图计算机视觉人工智能深度学习核函数高斯卷积云计算
简介高斯核函数是图像处理中常用的一种卷积核函数。它是一种线性滤波器,可以实现图像的平滑处理。在图像处理中,高斯核函数的卷积操作可以用于去噪、平滑和模糊等任务。高斯核函数的定义可以表示为一个二维高斯分布函数,表达式如下:G(x,y)=(1/(2*pi*sigma^2))*exp(-(x^2+y^2)/(2*sigma^2))其中,x和y表示图像中的像素位置,sigma表示高斯分布的标准差。高斯核函数
- html什么标签表示无序列表开始,4.html列表标签
weixin_39675728
网页中有三种列表,有序列表,无序列表和定义列表,觉得无序列表用的比较多点啊。下面就先开始说下无序列表了。无序列表:用ul标签来表示无序列表,列表里面的每一个列表项是li来表示。具体的效果如:无序列表的type属性,也就是列表项前面的那个圆点,有三种:实心圆点(disc),空心圆点(circle),实心方块(square)三种。默认是实心圆点(disc)无序列表的嵌套,就是一个无序列表里面又有一个无
- HTML-列表标签
Starboy-
html前端java
HTML中列表标签的分类(1、无序列表2、有序列表3、定义列表)其中无序列表:无序列表格式:需要显示的条目内容li其实是英文listitem的缩写list是列表的意思item是条目的意思所以结合起来就是列表条目的意思#####无序列表样式```htmldisc默认值实心圆circle空心圆square实心方块有序列表有序列表的作用:给一堆数据添加列表语义,并且这一堆数据中所有的数据都有先后之分-有
- html的列表标签
fly in the sky !
前端前端学习笔记html
列表标签列表在html里面经常会用到的,主要使用来布局的,使其整齐好看.无序列表无序列表[重要]:ul,li示例代码1:对应的效果:无序列表的属性属性值描述typedisc,square,cirlce规定列表的项目符号的类型注:disc是浏览器默认展示方式,默认展示方式可以不写该代码示例代码2:运行效果:有序列表有序列表[用的不多]:ol,li示例代码1:运行效果:有序列表的属性属性值描述type
- R语言corrplot相关性热图制作
梦剧场zjugis
可视化R语言数据分析r语言数据可视化数据分析
R语言corrplot相关性热图制作使用R语言制作相关性热图,使用corrplot这个包,本文进行简略的介绍,函数的具体内容见文档:https://cran.r-project.org/web/packages/corrplot/vignettes/corrplot-intro.html在函数中,可以选择不同的method可以绘制不同类型的图像,例如circle、square、ellipse、co
- Leetcode 333. Largest BST Subtree (二叉树后序遍历好题)
纸上得来终觉浅 绝知此事要躬行
leetcode算法职场和发展
LargestBSTSubtreeGivenabinarytree,findthelargestsubtreewhichisaBinarySearchTree(BST),wherelargestmeanssubtreewithlargestnumberofnodesinit.Note:Asubtreemustincludeallofitsdescendants.Example:Input:[10,
- armadillo matlab,Armadillo之计算矩阵的行列式(determinant)
三七二十
armadillomatlab
计算矩阵的行列式很简单,用det方法或是log_det方法1det(A)如果A不是方阵的(square),将抛出std::logic_error异常例:matm="3,2,4;1,-2,3;2,3,2;";doubled=det(m);cout<运行结果是-32log_det(value,sign,A)文档里推荐当矩阵A比较大时,使用本函数来代替det函数(估计会加快计算速度)det(A)=exp
- LeetCode 215. Kth Largest Element in an Array
cb_guo
题目描述Findthekthlargestelementinanunsortedarray.Notethatitisthekthlargestelementinthesortedorder,notthekthdistinctelement.Example1:Input:[3,2,1,5,6,4]andk=2Output:5Example2:Input:[3,2,3,1,2,4,5,5,6]andk
- matlab搭建IAE,ISE,ITAE性能指标
hasee_z6
MATLABmatlab
目录前言准备IAEISEITAE前言最近在使用matlab搭建控制系统性能评价指标模型,记录一下准备MATLABR2020IAEIAE函数表达式如下所示:IAE函数模型如下所示:ISEISE函数表达式如下所示:ISE函数模型如下所示:其中,MathFunction需要选择square。ITAEITAE函数表达式如下所示:ITAE函数模型如下所示:Clock填入仿真时间,Divide填入乘法,也就是
- spring-cloud-square源码速读(retrofit + okhttp篇)
程序员欣宸
欢迎访问我的GitHub这里分类和汇总了欣宸的全部原创(含配套源码):https://github.com/zq2599/blog_demosspring-cloud-square系列文章五分钟搞懂spring-cloud-squarespring-cloud-square开发实战(三种类型全覆盖)spring-cloud-square源码速读(spring-cloud-square-okhttp
- 问题4:java.lang.NoClassDefFoundError: okio.Buffer 错误的解决方法
一到家就变乖
1、问题:使用okHttp.jar时,报错java.lang.NoClassDefFoundError:okio.Buffer2、解决:出现这个错误,是因为我使用的okHttp网络请求库,而这个库依赖okio.jar这个jar包,可以去github上下载:https://github.com/square/okio
- Leetcode 1577. Number of Ways Where Square of Number Is Equal to Product of Two Numbers
SnailTyan
文章作者:Tyan博客:noahsnail.com|CSDN|1.DescriptionNumberofWaysWhereSquareofNumberIsEqualtoProductofTwoNumbers2.Solution解析:Version1,分别计算两个数组的平方和以及所有组合乘积并统计对应值的个数,遍历每个数组平方和的个数,找到另一个数组对应的积的个数,二者相乘,加到三元组总个数中。Ve
- 幻方(Magic Square)
软件技术爱好者
数学广角随笔数学
幻方(MagicSquare)幻方概述什么是幻方呢?幻方(MagicSquare)就是指在n×n(n行n列)的方格里填上一些连续的数字,使任意一行、任意一列和对角线上的数字的和都相等。例如有3×3的3行3列的幻方叫三阶幻方,4×4的4行4列的幻方叫四阶幻方,5×5的5行5列的幻方叫五阶幻方等等。幻方最早记载于中国公元前500年的春秋时期《大戴礼》中,这说明中国人民早在2500年前就已经知道了幻方的
- retrofit源码解析
小怪兽大作战
一、简介retrofit是square开发的一个网络加载库,主要用于Android和Java。Retrofit对OKHttp进行了封装,加入了各种设计模式,注解,反射,使用起来更加方便。二、使用方法retrofit的使用大致分为三个部分:定义网络接口、创建retrofit对象、创建网络接口的动态代理、调用网络接口2.1定义网络接口publicinterfaceGitHubService{@GET(
- 最小二乘法的计算复杂度Computational complexity of least square regression operation
知识在于积累
数学大类专栏最小二乘法算法
https://math.stackexchange.com/questions/84495/computational-complexity-of-least-square-regression-operationhttps://courses.grainger.illinois.edu/cs357/fa2021/notes/ref-17-least-squares.html
- 详细讲解ES6箭头函数语法(附Demo)
码农研究僧
前端es6前端ecmascript
目录前言1.传统函数2.箭头函数3.差异比较彩蛋前言讲述箭头函数之前,先了解传统函数的格式,方便做一个对比1.传统函数函数声明:functiongreet(){console.log("Hello!");}greet();函数表达式:constsquare=function(x){returnx*x;};console.log(square(5));匿名函数作为回调:constnumbers=[1
- app逆向-⽹络请求库okhttp3
我是花臂不花
app逆向随笔javaandroidstudio
文章目录一、前言二、应用1、添加权限AndroidManifest.xml2、添加依赖okhttp33、编写界面文件activity_main.xml4、编写Activity代码三、效果一、前言OkHttp是由Square公司开发的用于Java和Android的开源HTTP客户端库。它被广泛用于在Java和Android应用程序中进行HTTP请求。OkHttp支持HTTP/2、SPDY和HTTP/
- leetcode - 368. Largest Divisible Subset
KpLn_HJL
OJ题目记录leetcode算法职场和发展
DescriptionGivenasetofdistinctpositiveintegersnums,returnthelargestsubsetanswersuchthateverypair(answer[i],answer[j])ofelementsinthissubsetsatisfies:answer[i]%answer[j]==0,oranswer[j]%answer[i]==0Ifth
- 如何通过极大似然估计 MLE Maximum Likelihood Estimation 获得 交叉熵 Cross Entropy 以及 均方损失函数 Mean Square Loss ?
shimly123456
StanfordCS229个人开发
似然函数定义以及极大似然估计MLE(完成)---------------------------------------------------------------------------------------start注意:P(A|B)并不总是等于P(B|A),原因如下:首先要明白一个事情,什么是似然函数?以下是CHATGPTMathSolver的回答:我自己解释一下,意思就是:观察到一组
- rust的指针作为函数返回值是直接传递,还是先销毁后创建?
wudixiaotie
返回值
这是我自己想到的问题,结果去知呼提问,还没等别人回答, 我自己就想到方法实验了。。
fn main() {
let mut a = 34;
println!("a's addr:{:p}", &a);
let p = &mut a;
println!("p's addr:{:p}", &a
- java编程思想 -- 数据的初始化
百合不是茶
java数据的初始化
1.使用构造器确保数据初始化
/*
*在ReckInitDemo类中创建Reck的对象
*/
public class ReckInitDemo {
public static void main(String[] args) {
//创建Reck对象
new Reck();
}
}
- [航天与宇宙]为什么发射和回收航天器有档期
comsci
地球的大气层中有一个时空屏蔽层,这个层次会不定时的出现,如果该时空屏蔽层出现,那么将导致外层空间进入的任何物体被摧毁,而从地面发射到太空的飞船也将被摧毁...
所以,航天发射和飞船回收都需要等待这个时空屏蔽层消失之后,再进行
&
- linux下批量替换文件内容
商人shang
linux替换
1、网络上现成的资料
格式: sed -i "s/查找字段/替换字段/g" `grep 查找字段 -rl 路径`
linux sed 批量替换多个文件中的字符串
sed -i "s/oldstring/newstring/g" `grep oldstring -rl yourdir`
例如:替换/home下所有文件中的www.admi
- 网页在线天气预报
oloz
天气预报
网页在线调用天气预报
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transit
- SpringMVC和Struts2比较
杨白白
springMVC
1. 入口
spring mvc的入口是servlet,而struts2是filter(这里要指出,filter和servlet是不同的。以前认为filter是servlet的一种特殊),这样就导致了二者的机制不同,这里就牵涉到servlet和filter的区别了。
参见:http://blog.csdn.net/zs15932616453/article/details/8832343
2
- refuse copy, lazy girl!
小桔子
copy
妹妹坐船头啊啊啊啊!都打算一点点琢磨呢。文字编辑也写了基本功能了。。今天查资料,结果查到了人家写得完完整整的。我清楚的认识到:
1.那是我自己觉得写不出的高度
2.如果直接拿来用,很快就能解决问题
3.然后就是抄咩~~
4.肿么可以这样子,都不想写了今儿个,留着作参考吧!拒绝大抄特抄,慢慢一点点写!
- apache与php整合
aichenglong
php apache web
一 apache web服务器
1 apeche web服务器的安装
1)下载Apache web服务器
2)配置域名(如果需要使用要在DNS上注册)
3)测试安装访问http://localhost/验证是否安装成功
2 apache管理
1)service.msc进行图形化管理
2)命令管理,配
- Maven常用内置变量
AILIKES
maven
Built-in properties
${basedir} represents the directory containing pom.xml
${version} equivalent to ${project.version} (deprecated: ${pom.version})
Pom/Project properties
Al
- java的类和对象
百合不是茶
JAVA面向对象 类 对象
java中的类:
java是面向对象的语言,解决问题的核心就是将问题看成是一个类,使用类来解决
java使用 class 类名 来创建类 ,在Java中类名要求和构造方法,Java的文件名是一样的
创建一个A类:
class A{
}
java中的类:将某两个事物有联系的属性包装在一个类中,再通
- JS控制页面输入框为只读
bijian1013
JavaScript
在WEB应用开发当中,增、删除、改、查功能必不可少,为了减少以后维护的工作量,我们一般都只做一份页面,通过传入的参数控制其是新增、修改或者查看。而修改时需将待修改的信息从后台取到并显示出来,实际上就是查看的过程,唯一的区别是修改时,页面上所有的信息能修改,而查看页面上的信息不能修改。因此完全可以将其合并,但通过前端JS将查看页面的所有信息控制为只读,在信息量非常大时,就比较麻烦。
- AngularJS与服务器交互
bijian1013
JavaScriptAngularJS$http
对于AJAX应用(使用XMLHttpRequests)来说,向服务器发起请求的传统方式是:获取一个XMLHttpRequest对象的引用、发起请求、读取响应、检查状态码,最后处理服务端的响应。整个过程示例如下:
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange
- [Maven学习笔记八]Maven常用插件应用
bit1129
maven
常用插件及其用法位于:http://maven.apache.org/plugins/
1. Jetty server plugin
2. Dependency copy plugin
3. Surefire Test plugin
4. Uber jar plugin
1. Jetty Pl
- 【Hive六】Hive用户自定义函数(UDF)
bit1129
自定义函数
1. 什么是Hive UDF
Hive是基于Hadoop中的MapReduce,提供HQL查询的数据仓库。Hive是一个很开放的系统,很多内容都支持用户定制,包括:
文件格式:Text File,Sequence File
内存中的数据格式: Java Integer/String, Hadoop IntWritable/Text
用户提供的 map/reduce 脚本:不管什么
- 杀掉nginx进程后丢失nginx.pid,如何重新启动nginx
ronin47
nginx 重启 pid丢失
nginx进程被意外关闭,使用nginx -s reload重启时报如下错误:nginx: [error] open() “/var/run/nginx.pid” failed (2: No such file or directory)这是因为nginx进程被杀死后pid丢失了,下一次再开启nginx -s reload时无法启动解决办法:nginx -s reload 只是用来告诉运行中的ng
- UI设计中我们为什么需要设计动效
brotherlamp
UIui教程ui视频ui资料ui自学
随着国际大品牌苹果和谷歌的引领,最近越来越多的国内公司开始关注动效设计了,越来越多的团队已经意识到动效在产品用户体验中的重要性了,更多的UI设计师们也开始投身动效设计领域。
但是说到底,我们到底为什么需要动效设计?或者说我们到底需要什么样的动效?做动效设计也有段时间了,于是尝试用一些案例,从产品本身出发来说说我所思考的动效设计。
一、加强体验舒适度
嗯,就是让用户更加爽更加爽的用你的产品。
- Spring中JdbcDaoSupport的DataSource注入问题
bylijinnan
javaspring
参考以下两篇文章:
http://www.mkyong.com/spring/spring-jdbctemplate-jdbcdaosupport-examples/
http://stackoverflow.com/questions/4762229/spring-ldap-invoking-setter-methods-in-beans-configuration
Sprin
- 数据库连接池的工作原理
chicony
数据库连接池
随着信息技术的高速发展与广泛应用,数据库技术在信息技术领域中的位置越来越重要,尤其是网络应用和电子商务的迅速发展,都需要数据库技术支持动 态Web站点的运行,而传统的开发模式是:首先在主程序(如Servlet、Beans)中建立数据库连接;然后进行SQL操作,对数据库中的对象进行查 询、修改和删除等操作;最后断开数据库连接。使用这种开发模式,对
- java 关键字
CrazyMizzz
java
关键字是事先定义的,有特别意义的标识符,有时又叫保留字。对于保留字,用户只能按照系统规定的方式使用,不能自行定义。
Java中的关键字按功能主要可以分为以下几类:
(1)访问修饰符
public,private,protected
p
- Hive中的排序语法
daizj
排序hiveorder byDISTRIBUTE BYsort by
Hive中的排序语法 2014.06.22 ORDER BY
hive中的ORDER BY语句和关系数据库中的sql语法相似。他会对查询结果做全局排序,这意味着所有的数据会传送到一个Reduce任务上,这样会导致在大数量的情况下,花费大量时间。
与数据库中 ORDER BY 的区别在于在hive.mapred.mode = strict模式下,必须指定 limit 否则执行会报错。
- 单态设计模式
dcj3sjt126com
设计模式
单例模式(Singleton)用于为一个类生成一个唯一的对象。最常用的地方是数据库连接。 使用单例模式生成一个对象后,该对象可以被其它众多对象所使用。
<?phpclass Example{ // 保存类实例在此属性中 private static&
- svn locked
dcj3sjt126com
Lock
post-commit hook failed (exit code 1) with output:
svn: E155004: Working copy 'D:\xx\xxx' locked
svn: E200031: sqlite: attempt to write a readonly database
svn: E200031: sqlite: attempt to write a
- ARM寄存器学习
e200702084
数据结构C++cC#F#
无论是学习哪一种处理器,首先需要明确的就是这种处理器的寄存器以及工作模式。
ARM有37个寄存器,其中31个通用寄存器,6个状态寄存器。
1、不分组寄存器(R0-R7)
不分组也就是说说,在所有的处理器模式下指的都时同一物理寄存器。在异常中断造成处理器模式切换时,由于不同的处理器模式使用一个名字相同的物理寄存器,就是
- 常用编码资料
gengzg
编码
List<UserInfo> list=GetUserS.GetUserList(11);
String json=JSON.toJSONString(list);
HashMap<Object,Object> hs=new HashMap<Object, Object>();
for(int i=0;i<10;i++)
{
- 进程 vs. 线程
hongtoushizi
线程linux进程
我们介绍了多进程和多线程,这是实现多任务最常用的两种方式。现在,我们来讨论一下这两种方式的优缺点。
首先,要实现多任务,通常我们会设计Master-Worker模式,Master负责分配任务,Worker负责执行任务,因此,多任务环境下,通常是一个Master,多个Worker。
如果用多进程实现Master-Worker,主进程就是Master,其他进程就是Worker。
如果用多线程实现
- Linux定时Job:crontab -e 与 /etc/crontab 的区别
Josh_Persistence
linuxcrontab
一、linux中的crotab中的指定的时间只有5个部分:* * * * *
分别表示:分钟,小时,日,月,星期,具体说来:
第一段 代表分钟 0—59
第二段 代表小时 0—23
第三段 代表日期 1—31
第四段 代表月份 1—12
第五段 代表星期几,0代表星期日 0—6
如:
*/1 * * * * 每分钟执行一次。
*
- KMP算法详解
hm4123660
数据结构C++算法字符串KMP
字符串模式匹配我们相信大家都有遇过,然而我们也习惯用简单匹配法(即Brute-Force算法),其基本思路就是一个个逐一对比下去,这也是我们大家熟知的方法,然而这种算法的效率并不高,但利于理解。
假设主串s="ababcabcacbab",模式串为t="
- 枚举类型的单例模式
zhb8015
单例模式
E.编写一个包含单个元素的枚举类型[极推荐]。代码如下:
public enum MaYun {himself; //定义一个枚举的元素,就代表MaYun的一个实例private String anotherField;MaYun() {//MaYun诞生要做的事情//这个方法也可以去掉。将构造时候需要做的事情放在instance赋值的时候:/** himself = MaYun() {*
- Kafka+Storm+HDFS
ssydxa219
storm
cd /myhome/usr/stormbin/storm nimbus &bin/storm supervisor &bin/storm ui &Kafka+Storm+HDFS整合实践kafka_2.9.2-0.8.1.1.tgzapache-storm-0.9.2-incubating.tar.gzKafka安装配置我们使用3台机器搭建Kafk
- Java获取本地服务器的IP
中华好儿孙
javaWeb获取服务器ip地址
System.out.println("getRequestURL:"+request.getRequestURL());
System.out.println("getLocalAddr:"+request.getLocalAddr());
System.out.println("getLocalPort:&quo