使用參數改變函式的行為. 在先前的例子中, hello 函式的行為是固定的。函式可透過參數(parameter) 來改變函式的行為。如下例:. fn hello(name: &str) { println!(
確定! 回上一頁