javaFX的问题
defnums=[5,7,3,9];varsum=0;vartotal={varsum=0;for(ainnums){sum+=a};sum;//这个sum存在的意义,}...
def nums = [5, 7, 3, 9];
var sum=0;
var total = {
var sum = 0;
for (a in nums) {
sum += a
};
sum;//这个 sum 存在的意义,
}
println("Total is {total}."); 展开
var sum=0;
var total = {
var sum = 0;
for (a in nums) {
sum += a
};
sum;//这个 sum 存在的意义,
}
println("Total is {total}."); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询