[c_pavlov(-1,-1),c_titForTat(-1,0),c_sucker(-1,1),b_grim(0,-1)]prisoners: Prelude.head: empty list
当我调用reproduce时,它会抛出prelude.head空列表错误,而胜利者、代理和int列表都是非空的,因此在递归的最后一次迭代中它可能是一个边缘大小写错误。
在tokio.rs文档中,我们可以看到以下代码片段 // split the socket stream into readable and writable parts// copy bytes from the reader into the writer
let amount = io::copy(reader, writer); 我假设split确实是Stream::split,但是我不知道这个特性如何应用于TcpStream,因为流页面没有提到TcpStream,反之亦然。