99999久久久久久亚洲,欧美人与禽猛交狂配,高清日韩av在线影院,一个人在线高清免费观看,啦啦啦在线视频免费观看www

熱線電話:13121318867

登錄
2019-02-26 閱讀量: 1002
python 中map函數(shù)報(bào)錯(cuò)

python 中map函數(shù)報(bào)錯(cuò):報(bào)錯(cuò)信息如下

答:這是參數(shù)傳錯(cuò)導(dǎo)致的,map函數(shù)的第二個(gè)參數(shù)需要是可迭代的,map函數(shù)的文檔做了如下介紹

Docstring:
map(function, sequence[, sequence, ...]) -> list

Return a list of the results of applying the function to the items of
the argument sequence(s). If more than one sequence is given, the
function is called with an argument list consisting of the corresponding
item of each sequence, substituting None for missing values when not all
sequences have the same length. If the function is None, return a list of
the items of the sequence (or a list of tuples if more than one sequence).
Type: builtin_function_or_method

其中function位置需要傳入函數(shù),后面的可以傳入一個(gè)或多個(gè)序列類型的參數(shù),如列表、字典、元組等

0.0000
2
關(guān)注作者
收藏
評(píng)論(0)

發(fā)表評(píng)論

暫無數(shù)據(jù)
推薦帖子