例子:计算矩形面积#[derive(Debug)] //需要在结构体定义之前加上外部属性#[derive(Debug)],结构体才能以Debug格式输出struct Rectangle { w.
確定! 回上一頁