def duichen(st):
st = str(st)
for i in range(len(st) // 2):
if st[i] == st[-1 - i]:
return True
else:
return False
print(duichen('3ab6ba3'))
转载于:https://www.cnblogs.com/laosun0204/p/9871910.html
def duichen(st):
st = str(st)
for i in range(len(st) // 2):
if st[i] == st[-1 - i]:
return True
else:
return False
print(duichen('3ab6ba3'))
转载于:https://www.cnblogs.com/laosun0204/p/9871910.html