Discuss / Python / 第三题偷懒

第三题偷懒

Topic source

Lance6716

#1 Created at ... [Delete] [Delete and Lock User]
def str2float(s):
    integer , decimal = s.split('.')
    return int(integer) + float('0.' + decimal)

Lance6716

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

我脑子真是抽了。。。


  • 1

Reply