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');
  }
}



 

 

相关文章:

  • 2021-05-24
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2021-03-30
猜你喜欢
  • 2021-11-26
  • 2021-09-04
  • 2021-12-10
  • 2021-12-22
  • 2021-09-21
  • 2021-08-04
相关资源
相似解决方案