简洁代码---python---string

判断字符串是否是回文的,即是否中心对称的:

>>>return s[::-1] == s

对称返回True, 否则返回False

原文地址:https://www.cnblogs.com/siriuswang/p/3906787.html