2018网易秋招
Posted on
| Post modified
Words count in article:
766
|
Reading time ≈
3
[编程题] 魔法币小易准备去魔法王国采购魔法神器,购买魔法神器需要使用魔法币,但是小易现在一枚魔法币都没有,但是小易有两台魔法机器可以通过投入x(x可以为0)个魔法币产生更多的魔法币。
魔法机器1:如果投入x个魔法币,魔法机器会将其变为2x+1个魔法币
魔法机器2:如果投入x个魔法币,魔法机器会将其
...
Python矩阵
Posted on
| Post modified
Words count in article:
144
|
Reading time ≈
1
依赖:numpy,inv
说明: inv: 矩阵求逆 dot: 矩阵点乘 mat: 二维矩阵 array: 一维数组 A.reshape(1,2),把A输出成1行2列的形式
上代码:123456789101112131415# inv: 矩阵求逆 dot: 矩阵点乘 m
...
WCF服务
Posted on
| Post modified
Words count in article:
267
|
Reading time ≈
1
WCF服务1.创建一个接口,并给予ServiceContract协议123456[SerciveContract]public interface IWCFService{ [OperationContract] bool DoLogin(string username, string p
...
Socket通讯
Posted on
| Post modified
Words count in article:
440
|
Reading time ≈
2
Socket通讯TCP三次握手1.客户端发送请求报文a,发送信号为i2.服务端接收报文a,回应客户端发送确认信号i+1,重置发送信号j3.客户端收到确认报文,再次发送确认信号j+1,重置发送信号k。连接建立成功。
简单的Socket例子服务端1.创建IPAddress和IPEndpoint1234s
...