由于文档对chat机制介绍不多,因此它是进一步了解代码的很好起点。
As the chat mechanism is only lightly covered in the documentation, it's a good starting point for further code exploration.
清单1是相关代码和第一个测试(您一定明白编写单元测试的重要性,这里就不多说了)。
Listing 1 contains the code, as well as my first test. (I hope I don't need to convince you of the value of writing unit tests.)
RP 使用的代码基本上与在 第 1 部分 中看到的代码差不多,关于 RP 内部原理的更多信息参见第 1 部分。
The code that the RP uses is essentially just like the code you saw in Part 1, so I refer you there for more information about RP internals.
应用推荐