标签:ati str public 元素 numbers rgs number 循环 python
public class ForDemo{
public static void main(String[] args){
int[] numbers = {10,20,30,40,50};
//遍历数组元素
for(int x:numbers){
System.out.println(x);
}
}
}
输出得到
10
20
30
40
50
等价于python的:for i in numbers
标签:ati str public 元素 numbers rgs number 循环 python
原文地址:https://www.cnblogs.com/face-every/p/14656271.html