from functools import reduce
L1 = ['adam', 'LISA', 'barT'] L2 = list(map(FirstStrToDX, L1)) print(L2)
print(prod3([3, 5, 7, 9]))
return reduce(lambda x,y:x*10+y,map(int,s[0]))
return reduce(lambda x,y:x*10+y,map(int,s[0]+s[1]))/pow(10,len(s[1]))
print(str2float('123.456789')) print(str2float('0.123')) print(str2float('123.')) print(str2float('123'))
Sign in to make a reply
南人北相帅
from functools import reduce
L1 = ['adam', 'LISA', 'barT'] L2 = list(map(FirstStrToDX, L1)) print(L2)
print(prod3([3, 5, 7, 9]))
print(str2float('123.456789')) print(str2float('0.123')) print(str2float('123.')) print(str2float('123'))