但是在rust中,可以换个角度理解,认为5这个值匹配到了x变量。 ... ("default"), } let y = 2; match y { //匹配1或2 1 | 2 => println!("y=1 or 2"), ...
確定! 回上一頁