我想lambda象下面這樣: ls = ['.06', '23', '444']
arr = []
for x in ls:
if x.find('.') > -1:
x = float(x)
else:
x = int(x)
arr.append(x)
print(arr)
如何拉姆達寫信告訴他們的立場沒有改變? print([in
這裏就是我與現在的工作: for (int i = 0, numSamples = soundBytes.length/2; i < numSamples; i += 2)
{
// Get the samples.
int sample1 = ((soundBytes[i] & 0xFF) << 8) | (soundBytes[i + 1] & 0xFF); // Aut