__author__ = 'zht'#!/usr/bin/env python# -*- coding: utf-8 -*-'''#努力学习每一天'''import operator#方法1a = [1,2,3,4,5,6,7,11,10,9,]i = 1b = a[0]while i <= len(a): for k in a: if b >= k: pass else: b = k i +=1print(b)#方法2res = max(a)print(res)res = min(a)print(res)