Java前置知识
输入流:
(在Java面向对象编程-CSDN博客里面有提过相关知识------IO流)
// 快读快写
static BufferedReader in new BufferedReader(new InputStreamReader(System.in));
static BufferedWriter out new BufferedWriter(new…
一、判断语句
1.一个年份如果能被4整除但不能被100整除,或能被400整除,那么这个年份就是闰年 year int(input("请输入年份:"))if (year%40 and year%400!0) or year%4000:print(year,"是闰年")else:print(year,"不…