• 2024-12-04Android ping域名示例代码
    privatevalregex=Regex("""time=([\d.]+)""")/***@returnPair(Boolean,Int)boolean为ping是否成功int为ping的具体数值*/privatefunping(host:String):Pair<Boolean,Int>{valcommand="ping