【python】函数参数-任意参数
摘要:
def min1(args): res=args[0] for arg in args[1:]: if arg<res: res=arg return resdef min2(first,rest): for arg in rest: if arg<first: first=arg return firstdef min3(args): tmp=list(args) tmp.sort() return tmp[0]print 'Please in put a min func... 阅读全文
posted @ 2013-09-02 12:10 colipso 阅读(447) 评论(0) 推荐(0) 编辑