SCF
首页
项目
Code Learn
教程
练习场
题库
Python
C
Vibe
AI 办公
讲案
回文判断
Python
简单
编写一个函数 `is_palindrome(s)`,判断字符串是否为回文(正读反读都一样)。 **示例:** ```python print(is_palindrome('level')) # True print(is_palindrome('hello')) # False ```
你的代码
提交答案
显示提示
查看答案
def is_palindrome(s): # 判断是否为回文 pass
判题结果
提示
关闭
参考答案
关闭
返回列表