编辑代码
Python代码
3.11.0
2.7.17
运行
str1 =
input
(
'请输入一个字符串'
) str2 = str1[::
-1
]
if
str1 == str2:
print
(
'Yes'
)
else
:
print
(
'No'
)