博客 找到与“object”相关的博文共102篇
按相关性排序  按时间排序
The Dictionary Python Object Type - Sorting Keys:   2009-12-02 16:00:22
function(sortedreturns the result andsorts a variety of object types):D {'a':1,'c':3,'b':2} forkey in sorted(D):print key,,D a=1 b=2 c=3This case serves as an excuse to introduce thePythonforloop.Theforloop is asimple and efficient way to step ...
Integer类中toBinaryString(int i)的用法   2009-12-02 14:43:44
之前是想了解一下Java类型与Java Object类型的区别,经过上网查找,得出结论如下...Boolean,Integer,Long,Double他们是包装类,也就是说他们都是类,都有自己的行为和数据。JAVA所有的类都默认继承字类Object(即包java.lang.object),包括你自己创建的类。Boolean...
The Dictionary Python Object Type - Nesting Revisi   2009-12-02 15:50:14
that contains it,it can grow and shrink freely(object memory layout will be discussed further later in thisbook).The real reason for showing you this example is todemonstrate the flexibility of Python’s core data types.As you cansee,nesting allows...
The Dictionary Python Object Type - Dictionaries   2009-12-02 15:40:54
Dictionaries,the only mapping type inPython’s core objects set,are also mutable:they may be changedin-place,and can grow and shrink on demand,like lists.Mapping OperationsWhen written as literals,dictionaries are coded incurly braces,and consist...
The Dictionary Python Object Type   2009-12-02 15:19:36
part series on Python objecttypes,we will wrap up our discussion of lists and introduce you tosome remarkable things you can do with dictionaries.This articleis excerpted from chapter four of the book Learning Python,ThirdEdition,written by Mark...
String and List Python Object Types - Lists   2009-12-02 15:13:14
different types (aninteger,a string,and a floating-point number).Further,listshave no fixed size.That is,they can grow and shrink on demand,inresponse to list-specific operations:L.append('NI')#Growing:add object at end of list L L.pop(2)#Shrinking...
String and List Python Object Types - Other Ways t   2009-12-02 14:57:28
noting before we move on is thatnone of the string object’s methods support pattern-based textprocessing.Text pattern matching is an advanced tool outside thisbook’s scope,but readers with backgrounds in other scriptinglanguages may be interested...
String and List Python Object Types - Immutability   2009-12-02 14:26:32
sequences in Python as well,including lists and tuples.Inaddition to generic sequence operations,though,strings also haveoperations all their own,availableasmethods(functionsattached to the object,which are triggered with a callexpression_r).For...
object expected出现错误怎么办   2009-11-27 16:13:21
hideLayerKeypro:function() {(错误行)if(document.all.keypro_layer2) {hidden";function_setClassId() {(错误行)aos_set_subclsid("40"");}function_aos() {function_isInstalledKeyCrypt() {(错误行)if(!aos_loaded() ) {aos_write_object();AOS.keycrypt...
弹出框选择颜色   2009-11-10 18:22:08
标题页function getColor(color){ varsInitColor=color;/获取参数传递的颜色 if(sInitColor==null||sInitColor=")varsColor=myColor.ChooseColorDlg();/打开颜色对话框 elsevarsColor=myColor.ChooseColorDlg(sInitColor);/设置颜色sColor=sColor.toString(16);/转换为...
相关搜索