通过反转字符串来比较
#!/usr/bin/env python3
s = input("Enter the string: ")
z = s[::-1]
if s == z:
print("Yes, it's a ")
else:
print("no")
通过反转字符串来比较
#!/usr/bin/env python3
s = input("Enter the string: ")
z = s[::-1]
if s == z:
print("Yes, it's a ")
else:
print("no")