相关文章推荐
阳刚的小狗  ·  湖南省耒阳市 ...·  6 月前    · 
俊逸的罐头  ·  VSTO(Visual Studio ...·  8 月前    · 
玩足球的莴苣  ·  Necessity of ...·  8 月前    · 

let str  = "a b  c    d  e  f"

如果直接分割

str.split("")  你会得到   如下 ['a', ' ', 'b', ' ', ' ', 'c', ' ', ' ', ' ', 'd', '\t', 'e', '\t', 'f']  ,可以看出空格键会被解析成  ''   而tab键打出的空格会被解析成   '\t'

所以应该用正则表达式来进行切割,如下

str.split(/\s+/)    这样就会得到想要的效果了  ['a', 'b', 'c', 'd', 'e', 'f']

java prometheus监控 prometheus监控zookeeper

引言:以下各软件的链接,都是基于本文发布时,所使用的最新版本。因为该文主要是当笔记用,所以步骤比较粗糙。 主要监控对象: mongodb zookeeper kafka 主机1. 安装prometheus下载路径:https://github.com/prometheus/prometheus/releases/download/v2.44.0/prometheus-2.44.0.lin

1.已解决PackagesNotFoundError: The following packages are not available from current channels: tensorflo 2.QTP录制时间控件不允许用户手动输入解决办法 3.完美解决AttributeError:partially initialized module ‘‘has no attribute‘‘(most likely dueto a circula 4.完美解决org.apache.catalina.core.StandardContext.listenerStart Error configuring 5.栈内存解析:JVM内存结构的设计与优化