闰年脚本#!/bin/bashecho"pleaseinputayear;"readyearlet"n1=$year%4"let"n2=$year%100"let"n3=$year%400"if[!"n1"-eq0]thenleap=0elif[!"n2"-eq0]thenleap=1elif[!"n3"-eq0]thenleap=0elseleap=1fiif["leap"-eq1]thenecho"$yearisaleapyear!"elseecho"$yearisnotayear!"fi
分类:
其他好文 时间:
2017-03-08 16:40:35
阅读次数:
138