目前只能一次判断一个,用split后直接报错,自己改不对,也没搜到,想一次同时判断多个年份,以空格分隔
```python
year = int(input("请输入年份:"))
if year % 100 != 0 and year % 4 == 0 or year % 400 == 0:
print("%d为闰年" % year)
else:
print("%d不是闰年" % year)
```
```python
year = int(input("请输入年份:"))
if year % 100 != 0 and year % 4 == 0 or year % 400 == 0:
print("%d为闰年" % year)
else:
print("%d不是闰年" % year)
```
把代码贴一下, 你的输入年份, 是按空格,还是逗号分隔?