📜  dart 有数组 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:08.499000             🧑  作者: Mango

代码示例1
import 'dart:convert';
void main() { 
   var arr = new List(5);// creates an empty array of length 5
   // assigning values to all the indices
   arr[0] = 'a'; 
   arr[1] = 'b'; 
   arr[2] = 'c'; 
   arr[3] = 'd'; 
   arr[4] = 'e';  
   print(arr); 
}