from functools import reduce t=list(str(n)) q=t[::-1] r=list(map(int,q)) m=reduce(lambda x,y: x*10+y,r) return m==n
Sign in to make a reply
艾莉丝家的小妹