dart 中的变量和常量 void main(){//固定的方法 var a = 10; print(a); final c =30;//关键字 关注字只能被赋值一次 print(c); const d =20; //常量 只能被赋值一次 print(d); } Last modification:August 6, 2020 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 如果觉得我的文章对你有用,请随意赞赏