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
Helponbuilt-infunctiondirinmodule__builtin__:dir(...)dir([object])->listofstringsIfcalledwithoutanargument,returnthenamesinthecurrentscope.Else,returnanalphabetizedlistofnamescomprising(someof)theattributesofthegivenobject,andofattributesreachablefromit...
分类:
编程语言 时间:
2017-02-20 23:25:00
阅读次数:
264
Helponbuilt-infunctioncallableinmodule__builtin__:callable(...)callable(object)->boolReturnwhethertheobjectiscallable(i.e.,somekindoffunction).Notethatclassesarecallable,asareinstanceswitha__call__()method. callable(object)ReturnTrueiftheobjectargumentap..
分类:
编程语言 时间:
2017-02-17 01:00:24
阅读次数:
180
Helponclassclassmethodinmodule__builtin__:classclassmethod(object)|classmethod(function)->method||Convertafunctiontobeaclassmethod.||Aclassmethodreceivestheclassasimplicitfirstargument,|justlikeaninstancemethodreceivestheinstance.|Todeclareaclassmethod,u..
分类:
编程语言 时间:
2017-02-17 00:59:35
阅读次数:
205
Helponbuilt-infunctionabsinmodule__builtin__:abs(...)abs(number)->numberReturntheabsolutevalueoftheargument.abs(x)Returntheabsolutevalueofanumber.Theargumentmaybeaplainorlongintegerorafloatingpointnumber.Iftheargumentisacomplexnumber,itsmagnitudeisreturn..
分类:
编程语言 时间:
2017-02-14 23:00:04
阅读次数:
174
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
Helponclassbasestringinmodule__builtin__:classbasestring(object)|Typebasestringcannotbeinstantiated;itisthebaseforstrandunicode.||Dataandotherattributesdefinedhere:||__new__=<built-inmethod__new__oftypeobject>|T.__new__(S,...)->anewobjectwithtypeS,..
分类:
编程语言 时间:
2017-02-14 22:56:44
阅读次数:
454
1.函数参数,引用? 2.lambda 3.python内置函数 4.递归 :fibonacci 5.生成验证码 ...
分类:
其他好文 时间:
2017-02-11 14:45:35
阅读次数:
125
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
0.说明9个月没有写过Python了,这9个月都在华为的ICT知识海洋里遨游,前段时间刚刚通过了HCIE的认证,想着还是喜欢Python和Linux多些,所以又回来了,后面会有越来越多的Python干货分享给大家,比如后面会打算写一个完整的Linux主机监控项目的教程给初入门的朋友,相信这会是非..
分类:
编程语言 时间:
2017-01-09 00:50:14
阅读次数:
2990