第二题
def prod(L): return reduce(lambda x,y:x*y,L)
第三题
def str2float(s): return reduce(lambda x,y:x+y*(0.1**(len(str(y)))),map(int,s.split('.')))
Sign in to make a reply
张青松zhqs
第二题
第三题