根据定义实现基本的回文数检测程序

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#! -*- coding: utf-8 -*-
#/usr/local/env python

def check_huiwen(number):
	number = list(number)
	print number
	number_reversed = list(reversed(number))
	print number_reversed
	if number == number_reversed:
		return True
	else:
		return False
if __name__ == '__main__':
	number = raw_input('请输入数字:')
	if check_huiwen(number):
		print '%s是回文数' % number
	else:
		print '%s不是回文数' % number