最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

python內(nèi)建函數(shù)?

python內(nèi)建函數(shù)?

狐的傳說(shuō) 2019-02-05 09:05:17
python內(nèi)建函數(shù)
查看完整描述

3 回答

?
蕭十郎

TA貢獻(xiàn)1815條經(jīng)驗(yàn) 獲得超13個(gè)贊

使用dir(__builtins__)可以給出所有內(nèi)建函數(shù)的list

你要使用哪個(gè),打印該函數(shù)的__doc__即可知道其用法

比如
>>> dir(map)
['__call__', '__class__', '__cmp__', '__delattr__', '__doc__', '__getattribute__', '__hash__', '__init__', '__module__', '__name__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__self__', '__setattr__', '__str__']
>>> print map.__doc__
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).
>>>

至于你想要內(nèi)建函數(shù)的詳細(xì)說(shuō)明,我是不會(huì)給你的(我也沒(méi)有,呵呵)
但都在文檔里面

不知道為什么你們不先看看文檔再來(lái)問(wèn)問(wèn)題呢。。。


查看完整回答
反對(duì) 回復(fù) 2019-03-15
  • 3 回答
  • 0 關(guān)注
  • 723 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)