list.set.map.array间的相互转换 list转set Set set = new HashSet(new ArrayList()); set转list List list = new ArrayList(new HashSet()); array转为list List stooges = Arrays.asList("Larry", "Moe", "Curly"); 或者 String[] arr = {"1",…
#-*- coding:utf- -*- ''' Created on -- # 输入年月日,判断为一年的第几天 @author: AdministrInputator ''' def leapYear(year): # 判断平闰年,由于输入年份只有两位数,‘’~‘’转换为2000~,‘’~’‘转换为1970~ == and year % != : return True else: return False def dateJudge(strInput): # which day of the…