python如何判断回文数python判断回文数的方法:首先将数组转为字符串;然后设置两个指针,一个从左往右遍历字符串,一个从右往左遍历,如果遇到两个不相等的情况,则不为回文数,直到两个指针相等。本教程操作环境:windows7系统、python3.9版,DELL 1