37,721
社区成员
发帖
与我相关
我的任务
分享
#circle_char.py
upper_list = [] #大写字母表
lower_list = [] #小写字母表
for x in range(65, 91):
upper_list.append(chr(x))
for x in range(97, 123):
lower_list.append(chr(x))
a = input()
if a in upper_list:
index = upper_list.index(a)
print(upper_list[(index+5)%26])
elif a in lower_list:
index = lower_list.index(a)
print(lower_list[(index+5)%26])
#find_int.py
import math
x, y = input().split(" ")
x = float(x)
y = float(y)
if x < y:
if abs(x-y) > 1:
print("是")
elif math.ceil(x) == math.floor(y) and math.floor(y) != y:
print("是")
else:
print("否")
elif x > y:
if abs(x-y) > 1:
print("是")
elif math.ceil(y) == math.floor(x) and math.floor(x) != x:
print("是")
else:
print("否")
else:
print("否")