任何人都可以说明它显示的原因。在阅读输入状态后,我承认它是 python,没有什么可读的。
蟒蛇 3.6
#!/bin/python3
import math
import os
import random
import re
import sys
while True:
try:
N = int(input())
except EOFError:
return
#N = int(input())
if N % 2 != 0:
print("Wierd")
elif N % 2 == 0 and N in range(2, 6):
print("Not Wierd")
elif N % 2 == 0 and N in range(6, 21):
print("Wierd")
elif N % 2 == 0 and N > 20:
print("Wierd")
if __name__ == '__main__':
N = int(input())
错误声明
Traceback (most recent call last):
File "solution.py", line 27, in <module>
N = int(input())
EOFError: EOF when reading a line
Blockquote