摘要: from functools import reduce CHAR_TO_FLOAT = { '0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, '.': -1 } def str2float(s): ... 阅读全文
posted @ 2017-02-06 16:26 DevOps_QXW 阅读(1316) 评论(0) 推荐(0) 编辑