题解 | #判断回文#
判断回文
http://www.nowcoder.com/practice/e297fdd8e9f543059b0b5f05f3a7f3b2
python3
class Solution:
def judge(self , str ):
a = len(str)//2
if a==0:
return True
else:
for i in range(a):
while str[i-1] == str[-i]:
return True