te
Scala 系列(二)—— 基本数据类型和运算符
一、数据类型 1.1 类型支持 Scala 拥有下表所示的数据类型,其中 Byte、Short、Int、Long 和 Char 类型统称为整数类型,整数类型加上 Float 和 Double 统称为数值类型。Scala 数值类型的取值范围和 Java 对应类型的取值范围相同。 数据类...[详细]
2020-07-31 12:43 分类:编程语言第2节 Scala中面向对象编程:9、getClass和classOf;10、调用父类的constructor;11、抽象类和抽象字段;
6.3.4. Scala中getClass 和 classOf Class A extends class B B b=new A b.getClass ==classOf[A] B b=new B b.getClass ==classOf[B] isInstanceOf 只能判断出对象是否为指定类以及其子类的对象,而不能精确的判...[详细]
2020-07-31 12:30 分类:编程语言-
关于Scala中的String Interpolation
Scala provides two other string interpolators by default: raw and f. The raw string interpolator behaves like s, except it does not recognize character literal escape sequences In Scala, string in[详细]
2020-07-26 14:12 分类:编程语言-
华为路由交换设备配置静态路由——双DEMO
Demo1 实验拓扑如下: 配置两台PC机 配置两台路由器 R1 <Huawei> <Huawei>system-view //进入用户视图 Enter system view, return user view with Ctrl+Z. [Huawei]sysname R1 ...[详细]
2020-07-25 16:35 分类:路由交换 TCP下的套接字与并发编程
# 服务端.py import socket server = socket.socket() server.bind(('127.0.0.1',9999)) server.listen(5) while True: conn,addr = server.accept() while True: try: data = conn.recv[详细]
2020-07-25 15:47 分类:路由交换网络聊天室---node.js中net网络模块TCP服务端与客户端的使用
//1.简单创建 net服务器 // const net = require("net"); // const server = net.createServer((c)=>{ // //connection 监听器 // console.log("客户端已连接"); // c.on("end",()=>{ // ...[详细]
2020-07-25 15:20 分类:路由交换网络命令/关机重启命令
write 所有用户 给用户发信息 以Ctrl+D表示结束 是给在线用户发送 不在线发送不出去 bin write wcl wall bin write all 给所有当前用户发送广播 信息 ping ping选项IP地址 -c + 次数 表示发送多少次 ping ...[详细]
2020-07-25 14:51 分类:路由交换Netapp的Snapmirror复制网络流量QoS
限速 主要用于限制Snapmirror使用的网络带宽 启用限速 cluster>options -option-name replication.throttle.enable on 限制复制带宽 cluster>options -option-name replication.throttle.incoming.max_kbs 12500 以上是在目的端存储...[详细]
2020-07-25 14:07 分类:路由交换