📜  rust 如何在请求输入之前进行打印 - Rust 代码示例

📅  最后修改于: 2022-03-11 14:49:25.045000             🧑  作者: Mango

代码示例1
/*
For performance reasons, standard output is buffered. The write completes
but it is only writing to memory.
If you want it to actually display to the user, you have to trigger a flush.
This can be done either by writing a newline, or by doing it explicitly:
*/