#1. 判断一个列表是不是回文. def func(s): if len(s)<=1 : return True elif s[0] ==s[-1]: return func(s[1:-1]) else: return False print(func([11,22,33,33,22,111]))