关于作者

Discuss / Python / 留

喜碧夫人听众

#1 Created at ...

def str2float(s): L = s.split('.') zs = reduce(lambda x,y:x*10+y,map(int,L[0])) xs = reduce(lambda x,y:x/10+y,map(int,L[1][::-1])) return zs+xs/10

隔壁你王叔866

#2 Created at ...

我写了几十行,你这几行就解决了0.0


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.