Basic data type: 1, numeric int (integer) on a 32-bit machine, the number of digits of the integer is 32 bits, the value range is -2**31~2**31-1, that is, -2147483648~2147483647 on a 64-bit system, the number of digits of the integer is 64 bits, the value range is -2**63~2 **63-1, -9223372036854775808~9223372036854775807 class int (object): Def bit_length (self): "" Returns the minimum number of digits used to represent the number "" "" "" Int.bit_length () int number of bits necessary to represent self in binary. >>> bin (PNS) ' 0b100101 ' >>> (PNS). Bit_length () 6 "" "Return 0 def conjugate (self, *args, **kwargs): # Real Signature Unknown "" "returns the complex number of the conjugate complex" "" "" Returns self, the complex conjugate of any int. "" "Pass 2, Boolean true or False 1 or 03, string" Hello World "string common features:
- Remove whitespace
- Segmentation
- Length
- Index
- Slice
def capitalize (self): "" "Capitalize" "" " def Center (self, Width, fillchar=none):" "" Content centered, Width: total length; Fillchar: padding content in empty space, The default is None "" " def count (self, sub, Start=none, End=none):" "" "" "" "" "" def endswith (self, suffix, Start=none, End=none): "" "whether End with XXX" "" "" def expandtabs (Self, Tabsize=none): "" to convert tab to space, default one tab to 8 spaces "" " def Find (self, sub, Start=none, End=none): "" "find sub-sequence position, if not found, return-1" "" def format (*args, **kwargs ): # Known special case of Str.format "" "string formatted, dynamic parameter, will function programmatically when the" "" def Index (self, sub, Start=none, End=none): "" "Sub- Sequence position, if not found, error "" "" "" "" "" is the letter and the number "" "Def Isalpha (self):" "" is the letter "" "" "" "" "" "" is the number "" " def islower (self): "" "Whether lowercase" "" "Def isspace (self):" "Is there a Space" Def istitle (self): "" is the title " def Isupper (self):" "is all uppercase" S . Isupper () Booldef join (self, iterable): "" "" "" "" "" "" "" "S.join (iterable)-String def ljust (self, wid Th, Fillchar=none): "" "content left-aligned, right-filled"" "" "" "" S.ljust (width[, Fillchar]), string def lower (self): "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ". Trip (self, Chars=none): "" "Remove left blank" "" "" "S.lstrip ([chars]), string or unicode def partition (self, SEP): "" "Split, before, in, and after three parts" "" "" "S.partition (Sep)--(head, Sep, tail) def replace (self, old, new, Count=none):" "Replace" "" "" "S.replace (old, new[, Count])--string def rsplit (self, Sep=none, Maxsplit=none):" Split by letter "S.rsplit ([Sep [, MA XSplit]), List of Strings def splitlines (self, Keepends=false): "" "" "" "" "" "" "" S.splitlines (keepends =false), List of Stringsdef startswith (self, prefix, Start=none, end=none): "" "whether Start," "" "S.startswith (prefix[, St art[, end]]), Booldef swapcase (self): "" "," "" "," "" "", "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" " S.title (), string
Python type parsing