作业
Topic sourcea = {'1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6}
i = map(lambda x: a[x], (i for i in s if i!='.'))
return reduce(lambda x, y: x * 10 + y, i) * 0.001
- 1
a = {'1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6}
i = map(lambda x: a[x], (i for i in s if i!='.'))
return reduce(lambda x, y: x * 10 + y, i) * 0.001
Rayn-S
笨人笨办法