🌈 搜索
📅  最后修改于: 2022-03-11 14:49:20.479000             🧑  作者: Mango
int[] arr = new int[] { 1, 2, 3 }; int sum = 0; foreach (var item in arr) { sum += item; }