If you run this code with a larger number for the Fibonacci sequence index (say, 12), you'll end up watching output scroll by for a long time.
如果对大的斐波纳契数列(比如说12)使用这段代码,将会看到长时间的滚动输出。
To this end, we attach a "tee" (T-shape pipe) that permits two things at the same time: placing the output into a file AND displaying the output into the screen. The plumbing analogy would be.
为达到此目的,我们连接允许两件事同时进行的“ tee ” (t -形管道):将输出结果放在文件中同时将输出结果显示在屏幕上。
The start message is output a second time, the second call to suspend returns immediately, and the end message is sent in response.
第二次输出start消息,立即返回对suspend的第二次调用,并且发送end消息进行响应。
应用推荐