一 数组是一个多个相同数据的集合.数组的长度一旦定义,将不能改变.数组的下标是从0开始的,到数组的长度-1结束. 1.数组的声明,初始化 int[] a = new int[3]{1,2,3}; int[] b ={1,2,3}; int i=3; int[] c = new int[i]; c[0]=1;c[1]=2;c[2]=3; int[] d = new int[10] for(int i=0;i<d.length;i++){ d[i]=i; } 2.数组的遍历 1.for循环遍历 in…
*表示匹配[0,正无穷大]次 * means math zero or more-----occur any number of times in the text. # -*- coding: utf-8 -*-"""Spyder Editor This is a temporary script file."""import remessage="the adventure of batman"re1=re.compile…