Discuss / Python / fighting

fighting

Topic source

    a,b=s.split('.')

    x1=reduce(lambda x,y:x*10+y,map(int,a))

    y1=reduce(lambda x,y:x*0.1+y,map(int,b[::-1]))/10

    return x1+y1

初学感觉这个代码是最简单最能看懂的

Ilove17109

#2 Created at ... [Delete] [Delete and Lock User]

你看我的代码呢?


  • 1

Reply