3-2 【文档讲解】Dart基础快速入门
DartPad
https://dart.dev/
https://dart.dev/tools/dartpad
DartPad中文的地址:
https://dartpad.cn
dartpad.cn默认的展示。
void main() { for (int i = 0; i < 5; i++) { print(‘hello ${i + 1}‘); } }
必须要写在入口main中才可以正确的输出
main(){ print("Hello World!"); }
main(){ String name = ‘dart‘; var otherName=‘Dart‘; print(name + otherName); }
main(){ var myNull=null; if(myNull == null){ print(‘use "== null" to check null‘); } var zero = 0; if(zero == 0){ print(‘use "== 0" to check zero‘); } }
结束
相关推荐
RedCode 2020-10-28
万物weiyi 2020-06-16
Samlss 2020-06-04
liutong 2020-05-12
万物weiyi 2020-03-04
mryangjx 2020-03-01
liutong 2020-02-26
liutong 2020-02-22
Samlss 2020-02-22
chaoxiao 2020-02-15
mryangjx 2020-01-28
mryangjx 2020-01-25
apowerfulman 2020-01-07
Samlss 2020-01-07
万物weiyi 2020-01-01
mryangjx 2019-12-25
Samlss 2019-12-15
Dreamfine 2019-12-13