def str2float(s): integer , decimal = s.split('.') return int(integer) + float('0.' + decimal)
我脑子真是抽了。。。
Sign in to make a reply
Lance6716