码迷,mamicode.com
首页 >  
搜索关键字:python内置函数    ( 473个结果
python内置函数3-complex()
Helponclasscomplexinmodule__builtin__:classcomplex(object)|complex(real[,imag])->complexnumber||Createacomplexnumberfromarealpartandanoptionalimaginarypart.|Thisisequivalentto(real+imag*1j)whereimagdefaultsto0.||Methodsdefinedhere:||__abs__(...)|x.__abs_..
分类:编程语言   时间:2017-02-20 23:29:17    阅读次数:239
python内置函数3-dir()
Helponbuilt-infunctiondirinmodule__builtin__:dir(...)dir([object])->listofstringsIfcalledwithoutanargument,returnthenamesinthecurrentscope.Else,returnanalphabetizedlistofnamescomprising(someof)theattributesofthegivenobject,andofattributesreachablefromit...
分类:编程语言   时间:2017-02-20 23:25:00    阅读次数:264
python内置函数2-callable()
Helponbuilt-infunctioncallableinmodule__builtin__:callable(...)callable(object)->boolReturnwhethertheobjectiscallable(i.e.,somekindoffunction).Notethatclassesarecallable,asareinstanceswitha__call__()method. callable(object)ReturnTrueiftheobjectargumentap..
分类:编程语言   时间:2017-02-17 01:00:24    阅读次数:180
python内置函数2-classmethod()
Helponclassclassmethodinmodule__builtin__:classclassmethod(object)|classmethod(function)->method||Convertafunctiontobeaclassmethod.||Aclassmethodreceivestheclassasimplicitfirstargument,|justlikeaninstancemethodreceivestheinstance.|Todeclareaclassmethod,u..
分类:编程语言   时间:2017-02-17 00:59:35    阅读次数:205
python内置函数1-abs()
Helponbuilt-infunctionabsinmodule__builtin__:abs(...)abs(number)->numberReturntheabsolutevalueoftheargument.abs(x)Returntheabsolutevalueofanumber.Theargumentmaybeaplainorlongintegerorafloatingpointnumber.Iftheargumentisacomplexnumber,itsmagnitudeisreturn..
分类:编程语言   时间:2017-02-14 23:00:04    阅读次数:174
python内置函数1-any()
Helponbuilt-infunctionanyinmodule__builtin__:any(...)any(iterable)->boolReturnTrueifbool(x)isTrueforanyxintheiterable. any(iterable)ReturnTrueifanyelementoftheiterableistrue.Iftheiterableisempty,returnFalse.Equivalentto:defany(iterable):forelementinitera..
分类:编程语言   时间:2017-02-14 22:58:21    阅读次数:554
python内置函数1-basestring()
Helponclassbasestringinmodule__builtin__:classbasestring(object)|Typebasestringcannotbeinstantiated;itisthebaseforstrandunicode.||Dataandotherattributesdefinedhere:||__new__=<built-inmethod__new__oftypeobject>|T.__new__(S,...)->anewobjectwithtypeS,..
分类:编程语言   时间:2017-02-14 22:56:44    阅读次数:454
day6
1.函数参数,引用? 2.lambda 3.python内置函数 4.递归 :fibonacci 5.生成验证码 ...
分类:其他好文   时间:2017-02-11 14:45:35    阅读次数:125
Python 内置函数
abs()绝对值 all([1,2,3,4]) True False:bool(None),bool(''''),bool([]),bool(()),bool({}) any(['''',[],{},None]) False any(['''',[],{},None,1]) True ret=asc ...
分类:编程语言   时间:2017-02-02 20:57:28    阅读次数:254
用Python内置函数轻松实现各种进制数之间的转换
0.说明9个月没有写过Python了,这9个月都在华为的ICT知识海洋里遨游,前段时间刚刚通过了HCIE的认证,想着还是喜欢Python和Linux多些,所以又回来了,后面会有越来越多的Python干货分享给大家,比如后面会打算写一个完整的Linux主机监控项目的教程给初入门的朋友,相信这会是非..
分类:编程语言   时间:2017-01-09 00:50:14    阅读次数:2990
473条   上一页 1 ... 32 33 34 35 36 ... 48 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!