📅  最后修改于: 2022-03-11 14:48:56.800000             🧑  作者: Mango
using System;
using System.Collections.Generic;
using System.Linq;
var vals = new List() { 1, 2, 3, 4, 5, 6, 7 };
int sum = vals.Sum();
Console.WriteLine(sum);