使用 loop 關鍵字,Rust 會提供給你一個方法,會無限循環直到某些終結陳述達成。 Rust 的無限 loop ... continue 也很類似,但是並非結束迴圈,而是跳到下一次疊代。
確定! 回上一頁