日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

[转载] python学习笔记2--操作符,数据类型和内置功能

發布時間:2025/3/11 python 53 豆豆
生活随笔 收集整理的這篇文章主要介紹了 [转载] python学习笔记2--操作符,数据类型和内置功能 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

參考鏈接: Python中的Inplace運算符| 1(iadd(),isub(),iconcat()…)

什么是操作符??

?簡單的回答可以使用表達式4 + 5等于9,在這里4和5被稱為操作數,+被稱為操符。 Python語言支持操作者有以下幾種類型。?

? 算術運算符? 比較(即關系)運算符? 賦值運算符? 邏輯運算符? 位運算符? 會員操作符? 標識操作符?

?讓我們逐一看看所有的運算符。?

?Python算術運算符:?

?操作符描述符例子+加法 - 對操作符的兩側增加值a + b = 30-減法 - 減去從左側操作數右側操作數a - b = -10*乘法 - 相乘的運算符兩側的值a * b = 200/除 - 由右側操作數除以左側操作數b / a = 2%模 - 由右側操作數和余返回除以左側操作數b % a = 0**指數- 執行對操作指數(冪)的計算a**b = 10 的冪 20//地板除 - 操作數的除法,其中結果是將小數點后的位數被除去的商。9//2 =? 4 而 9.0//2.0 = 4.0

? ?

? ?

? ?

? ?

? ?

? ?

? ?

?

??

??

? ?

? ?#!/usr/bin/python

?

a = 21

b = 10

c = 0

?

c = a + b

print "Line 1 - Value of c is ", c

?

c = a - b

print "Line 2 - Value of c is ", c?

?

c = a * b

print "Line 3 - Value of c is ", c?

?

c = a / b

print "Line 4 - Value of c is ", c?

?

c = a % b

print "Line 5 - Value of c is ", c

?

a = 2

b = 3

c = a**b?

print "Line 6 - Value of c is ", c

?

a = 10

b = 5

c = a//b?

print "Line 7 - Value of c is ", c?

? ?

? 算術運算符示例

??

?

??

??

? ?

? ?Line 1 - Value of c is 31

Line 2 - Value of c is 11

Line 3 - Value of c is 210

Line 4 - Value of c is 2

Line 5 - Value of c is 1

Line 6 - Value of c is 8

Line 7 - Value of c is 2?

? ?

? 算術運算結果

??

? ?

? Python的比較操作符:?

?運算符描述示例==檢查,兩個操作數的值是否相等,如果是則條件變為真。(a == b) 不為 true.!=檢查兩個操作數的值是否相等,如果值不相等,則條件變為真。(a != b) 為 true.<>檢查兩個操作數的值是否相等,如果值不相等,則條件變為真。(a <> b) 為 true。這個類似于 != 運算符>檢查左操作數的值是否大于右操作數的值,如果是,則條件成立。(a > b) 不為 true.<檢查左操作數的值是否小于右操作數的值,如果是,則條件成立。(a < b) 為 true.>=檢查左操作數的值是否大于或等于右操作數的值,如果是,則條件成立。(a >= b) 不為 true.<=檢查左操作數的值是否小于或等于右操作數的值,如果是,則條件成立。(a <= b) 為 true.

? ?

? ?

? ?

? ?

? ?

? ?

?

??

??

? ?

? ?#!/usr/bin/python

?

a = 21

b = 10

c = 0

?

if ( a == b ):

? ?print "Line 1 - a is equal to b"

else:

? ?print "Line 1 - a is not equal to b"

?

if ( a != b ):

? ?print "Line 2 - a is not equal to b"

else:

? ?print "Line 2 - a is equal to b"

?

if ( a <> b ):

? ?print "Line 3 - a is not equal to b"

else:

? ?print "Line 3 - a is equal to b"

?

if ( a < b ):

? ?print "Line 4 - a is less than b"?

else:

? ?print "Line 4 - a is not less than b"

?

if ( a > b ):

? ?print "Line 5 - a is greater than b"

else:

? ?print "Line 5 - a is not greater than b"

?

a = 5;

b = 20;

if ( a <= b ):

? ?print "Line 6 - a is either less than or equal to? b"

else:

? ?print "Line 6 - a is neither less than nor equal to? b"

?

if ( b >= a ):

? ?print "Line 7 - b is either greater than? or equal to b"

else:

? ?print "Line 7 - b is neither greater than? nor equal to b"?

? ?

? 比較操作符運算示例

??

?

??

??

? ?

? ?Line 1 - a is not equal to b

Line 2 - a is not equal to b

Line 3 - a is not equal to b

Line 4 - a is not less than b

Line 5 - a is greater than b

Line 6 - a is either less than or equal to b

Line 7 - b is either greater than or equal to b?

? ?

? 比較操作符結果

??

? ?

? ?

?Python賦值運算符:?

?運算符描述示例=簡單的賦值運算符,賦值從右側操作數左側操作數c = a + b將指定的值 a + b 到? c+=加法AND賦值操作符,它增加了右操作數左操作數和結果賦給左操作數c += a 相當于 c = c + a-=減AND賦值操作符,它減去右邊的操作數從左邊操作數,并將結果賦給左操作數c -= a 相當于 c = c - a*=乘法AND賦值操作符,它乘以右邊的操作數與左操作數,并將結果賦給左操作數c *= a 相當于 c = c * a/=除法AND賦值操作符,它把左操作數與正確的操作數,并將結果賦給左操作數c /= a 相當于= c / a%=模量AND賦值操作符,它需要使用兩個操作數的模量和分配結果左操作數c %= a is equivalent to c = c % a**=指數AND賦值運算符,執行指數(功率)計算操作符和賦值給左操作數c **= a 相當于 c = c ** a//=地板除,并分配一個值,執行地板除對操作和賦值給左操作數c //= a 相當于 c = c // a

? ?

? ?

? ?

? ?

? ?

? ?

?

??

??

? ?

? ?#!/usr/bin/python

?

a = 21

b = 10

c = 0

?

c = a + b

print "Line 1 - Value of c is ", c

?

c += a

print "Line 2 - Value of c is ", c?

?

c *= a

print "Line 3 - Value of c is ", c?

?

c /= a?

print "Line 4 - Value of c is ", c?

?

c? = 2

c %= a

print "Line 5 - Value of c is ", c

?

c **= a

print "Line 6 - Value of c is ", c

?

c //= a

print "Line 7 - Value of c is ", c

?

#----------------------結果-----------------------

Line 1 - Value of c is 31

Line 2 - Value of c is 52

Line 3 - Value of c is 1092

Line 4 - Value of c is 52

Line 5 - Value of c is 2

Line 6 - Value of c is 2097152

Line 7 - Value of c is 99864?

? ?

? 賦值運算示例

??

? ?

?Python位運算符:?

? 位運算符作用于位和位操作執行位。假設,如果a =60;且b =13;現在以二進制格式它們將如下:?

?a = 0011 1100?

?b = 0000 1101?

?-----------------?

?a&b = 0000 1100?

?a|b = 0011 1101?

?a^b = 0011 0001?

?~a? = 1100 0011?

?Python語言支持下位運算符?

? ?

?操作符描述示例&二進制和復制操作了一下,結果,如果它存在于兩個操作數。(a & b) = 12 即 0000 1100|二進制或復制操作了一個比特,如果它存在一個操作數中。(a | b) = 61 即 0011 1101^二進制異或運算符的副本,如果它被設置在一個操作數而不是兩個比特。(a ^ b) =? 49 即? 0011 0001~二進制的補運算符是一元的,并有“翻轉”位的效果。(~a ) =? -61 即 1100 0011以2的補碼形式由于帶符號二進制數。<<二進位向左移位運算符。左操作數的值左移由右操作數指定的位數。a << 2 = 240 即 1111 0000>>二進位向右移位運算符。左操作數的值是由右操作數指定的位數向右移動。a >> 2 = 15 即 0000 1111

? ?

? ?

? ?

? ?

? ?

?

??

??

? ?

? ?#!/usr/bin/python

?

a = 60? ? ? ? ? ? # 60 = 0011 1100?

b = 13? ? ? ? ? ? # 13 = 0000 1101?

c = 0

?

c = a & b;? ? ? ? # 12 = 0000 1100

print "Line 1 - Value of c is ", c

?

c = a | b;? ? ? ? # 61 = 0011 1101?

print "Line 2 - Value of c is ", c

?

c = a ^ b;? ? ? ? # 49 = 0011 0001

print "Line 3 - Value of c is ", c

?

c = ~a;? ? ? ? ? ?# -61 = 1100 0011

print "Line 4 - Value of c is ", c

?

c = a << 2;? ? ? ?# 240 = 1111 0000

print "Line 5 - Value of c is ", c

?

c = a >> 2;? ? ? ?# 15 = 0000 1111

print "Line 6 - Value of c is ", c

?

#--------------------------------結果-------------------------

Line 1 - Value of c is 12

Line 2 - Value of c is 61

Line 3 - Value of c is 49

Line 4 - Value of c is -61

Line 5 - Value of c is 240

Line 6 - Value of c is 15?

? ?

? 位運算符

??

? ?

?Python邏輯運算符:?

? Python語言支持以下邏輯運算符。?

? ?

?運算符描述示例and所謂邏輯與運算符。如果兩個操作數都是真的,那么則條件成立。(a and b) 為 true.or所謂邏輯OR運算符。如果有兩個操作數都是非零然后再條件變為真。(a or b) 為 true.not所謂邏輯非運算符。用于反轉操作數的邏輯狀態。如果一個條件為真,則邏輯非運算符將返回false。not(a and b) 為 false.

? ?

? ?

? ?

? ?

?

??

??

? ?

? ?#!/usr/bin/python

?

a = 10

b = 20

c = 0

?

if ( a and b ):

? ?print "Line 1 - a and b are true"

else:

? ?print "Line 1 - Either a is not true or b is not true"

?

if ( a or b ):

? ?print "Line 2 - Either a is true or b is true or both are true"

else:

? ?print "Line 2 - Neither a is true nor b is true"

?

?

a = 0

if ( a and b ):

? ?print "Line 3 - a and b are true"

else:

? ?print "Line 3 - Either a is not true or b is not true"

?

if ( a or b ):

? ?print "Line 4 - Either a is true or b is true or both are true"

else:

? ?print "Line 4 - Neither a is true nor b is true"

?

if not( a and b ):

? ?print "Line 5 - Either a is not true or b is not true"

else:

? ?print "Line 5 - a and b are true"

?

?

#---------------------------結果--------------------------------------

Line 1 - a and b are true

Line 2 - Either a is true or b is true or both are true

Line 3 - Either a is not true or b is not true

Line 4 - Either a is true or b is true or both are true

Line 5 - Either a is not true or b is not true?

? ?

? 邏輯運算示例

??

? ?

?Python成員運算符:?

?Python成員運算符,在一個序列中成員資格的測試,如字符串,列表或元組。有兩個成員運算符解釋如下:?

? ?

?操作符描述示例in計算結果為true,如果它在指定找到變量的順序,否則false。x在y中,在這里產生一個1,如果x是序列y的成員。not in計算結果為true,如果它不找到在指定的變量順序,否則為false。x不在y中,這里產生結果不為1,如果x不是序列y的成員。

? ?

? ?

? ?

?

??

??

? ?

? ?#!/usr/bin/python

?

a = 10

b = 20

list = [1, 2, 3, 4, 5 ];

?

if ( a in list ):

? ?print "Line 1 - a is available in the given list"

else:

? ?print "Line 1 - a is not available in the given list"

?

if ( b not in list ):

? ?print "Line 2 - b is not available in the given list"

else:

? ?print "Line 2 - b is available in the given list"

?

a = 2

if ( a in list ):

? ?print "Line 3 - a is available in the given list"

else:

? ?print "Line 3 - a is not available in the given list"

?

#------------結果--------------------------------------

Line 1 - a is not available in the given list

Line 2 - b is not available in the given list

Line 3 - a is available in the given list?

? ?

? 成員運算示例

??

? ?

?Python標識運算符:?

? ?

?運算符描述例子is計算結果為true,如果操作符兩側的變量指向相同的對象,否則為false。x是y,這里結果是1,如果id(x)的值為id(y)。is not計算結果為false,如果兩側的變量操作符指向相同的對象,否則為true。x不為y,這里結果不是1,當id(x)不等于id(y)。

? ?

? ?

? ?

?

??

??

? ?

? ?#!/usr/bin/python

?

a = 20

b = 20

?

if ( a is b ):

? ?print "Line 1 - a and b have same identity"

else:

? ?print "Line 1 - a and b do not have same identity"

?

if ( id(a) == id(b) ):

? ?print "Line 2 - a and b have same identity"

else:

? ?print "Line 2 - a and b do not have same identity"

?

b = 30

if ( a is b ):

? ?print "Line 3 - a and b have same identity"

else:

? ?print "Line 3 - a and b do not have same identity"

?

if ( a is not b ):

? ?print "Line 4 - a and b do not have same identity"

else:

? ?print "Line 4 - a and b have same identity"

?

#--------------------結果-------------------------------------------

Line 1 - a and b have same identity

Line 2 - a and b have same identity

Line 3 - a and b do not have same identity

Line 4 - a and b do not have same identity?

? ?

? 標識運算符示例

??

? ?

?Python運算符優先級?

?下表列出了所有運算符從最高優先級到最低。?

? ?

?運算符描述**冪(提高到指數)~ + -補碼,一元加號和減號(方法名的最后兩個+@和 - @)* / % //乘,除,取模和地板除+ -加法和減法>> <<左,右按位轉移&位'AND'^ |按位異'或`'和定期`或'<= < > >=比較運算符<> == !=等式運算符= %= /= //= -= += *= **=賦值運算符is is not標識運算符in not in成員運算符not or and邏輯運算符

??

? ?

? ?

? ?

? ?

? ?

? ?

?優先級?

? ?

?

??

??

? ?

? ?#!/usr/bin/python

?

a = 20

b = 10

c = 15

d = 5

e = 0

?

e = (a + b) * c / d? ? ? ?#( 30 * 15 ) / 5

print "Value of (a + b) * c / d is ",? e

?

e = ((a + b) * c) / d? ? ?# (30 * 15 ) / 5

print "Value of ((a + b) * c) / d is ",? e

?

e = (a + b) * (c / d);? ? # (30) * (15/5)

print "Value of (a + b) * (c / d) is ",? e

?

e = a + (b * c) / d;? ? ? #? 20 + (150/5)

print "Value of a + (b * c) / d is ",? e

?

#-------------結果------------------------

Value of (a + b) * c / d is 90

Value of ((a + b) * c) / d is 90

Value of (a + b) * (c / d) is 90

Value of a + (b * c) / d is 50?

? ?

? 運算符優先級示例

??

? ?

? ?

?數據類型和內置的功能?

?常用類功能查看方法?

?在pycharm里面 輸入class的名稱,?

?按住ctrl 單擊會自己跳轉到對應的class源碼里面。?

??

? 一、整數int的命令匯總?

??

? ?

? ?

? ??

? ? ''''''

class int(object):

? ? """

? ? int(x=0) -> integer

? ? int(x, base=10) -> integer

?

? ? Convert a number or string to an integer, or return 0 if no arguments

? ? are given.? If x is a number, return x.__int__().? For floating point

? ? numbers, this truncates towards zero.

?

? ? If x is not a number or if base is given, then x must be a string,

? ? bytes, or bytearray instance representing an integer literal in the

? ? given base.? The literal can be preceded by '+' or '-' and be surrounded

? ? by whitespace.? The base defaults to 10.? Valid bases are 0 and 2-36.

? ? Base 0 means to interpret the base from the string as an integer literal.

? ? >>> int('0b100', base=0)

? ? """

?

? ? def bit_length(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? int.bit_length() -> int

?

? ? ? ? Number of bits necessary to represent self in binary.

? ? ? ? 案例:

? ? ? ? >>> bin(37)

? ? ? ? '0b100101'

? ? ? ? >>> (37).bit_length()

? ? ? ? """

? ? ? ? return 0

?

? ? def conjugate(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Returns self, the complex conjugate of any int.?

? ? ? ? 返回共軛復數

? ? ? ? >>> a=37

? ? ? ? >>> result=a.conjugate()

? ? ? ? >>> print (result)

? ? ? ? >>> a=-37

? ? ? ? >>> print(a.conjugate())

? ? ? ? -37? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? @classmethod? # known case

? ? def from_bytes(cls, bytes, byteorder, *args,

? ? ? ? ? ? ? ? ? ?**kwargs):? # real signature unknown; NOTE: unreliably restored from __doc__

? ? ? ? """

? ? ? ? 不知道什么作用

? ? ? ? >>> a.from_bytes

? ? ? ? <built-in method from_bytes of type object at 0x000000001E283A30>

? ? ? ? >>> b=a.from_bytes

? ? ? ? >>> print(b)

? ? ? ? <built-in method from_bytes of type object at 0x000000001E283A30>

? ? ? ? >>> a=37

? ? ? ? >>> b=a.from_bytes()

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#18>", line 1, in <module>

? ? ? ? ? ? b=a.from_bytes()

? ? ? ? TypeError: Required argument 'bytes' (pos 1) not found

? ? ? ? 加()后會報錯。

? ? ? ? int.from_bytes(bytes, byteorder, *, signed=False) -> int

?

? ? ? ? Return the integer represented by the given array of bytes.

?

? ? ? ? The bytes argument must be a bytes-like object (e.g. bytes or bytearray).

?

? ? ? ? The byteorder argument determines the byte order used to represent the

? ? ? ? integer.? If byteorder is 'big', the most significant byte is at the

? ? ? ? beginning of the byte array.? If byteorder is 'little', the most

? ? ? ? significant byte is at the end of the byte array.? To request the native

? ? ? ? byte order of the host system, use `sys.byteorder' as the byte order value.

?

? ? ? ? The signed keyword-only argument indicates whether two's complement is

? ? ? ? used to represent the integer.

? ? ? ? """

? ? ? ? pass

?

? ? def to_bytes(self, length, byteorder, *args,

? ? ? ? ? ? ? ? ?**kwargs):? # real signature unknown; NOTE: unreliably restored from __doc__

? ? ? ? """

? ? ? ? int.to_bytes(length, byteorder, *, signed=False) -> bytes

?

? ? ? ? Return an array of bytes representing an integer.

?

? ? ? ? The integer is represented using length bytes.? An OverflowError is

? ? ? ? raised if the integer is not representable with the given number of

? ? ? ? bytes.

?

? ? ? ? The byteorder argument determines the byte order used to represent the

? ? ? ? integer.? If byteorder is 'big', the most significant byte is at the

? ? ? ? beginning of the byte array.? If byteorder is 'little', the most

? ? ? ? significant byte is at the end of the byte array.? To request the native

? ? ? ? byte order of the host system, use `sys.byteorder' as the byte order value.

?

? ? ? ? The signed keyword-only argument determines whether two's complement is

? ? ? ? used to represent the integer.? If signed is False and a negative integer

? ? ? ? is given, an OverflowError is raised.

? ? ? ? """

? ? ? ? pass

?

? ? def __abs__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ abs(self)?

? ? ? ? 取絕對值

? ? ? ? >>> a=-50

? ? ? ? >>> print(a.__abs__())

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def __add__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self+value.?

? ? ? ? 相加

? ? ? ? >>> a=-50

? ? ? ? >>> print(a.__add__(100))

? ? ? ? >>>?

? ? ? ? """

? ? ? ? pass

?

? ? def __and__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self&value.

? ? ? ? ?>>> a=255

? ? ? ? >>> print(bin(a))

? ? ? ? 0b11111111

? ? ? ? >>> b=128

? ? ? ? >>> print(bin(b))

? ? ? ? 0b10000000

? ? ? ? >>> print(a.__and__(b))

? ? ? ? 進行二進制的與運算

? ? ? ? """

? ? ? ? pass

?

? ? def __bool__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ self != 0

? ? ? ? 計算布爾值,只要不為0,結果就是True

? ? ? ??

? ? ? ? >>> a=35

? ? ? ? >>> print(a.__bool__())

? ? ? ? True

? ? ? ? >>> a=0

? ? ? ? >>> print(a.__bool__())

? ? ? ? False

? ? ? ? >>> a=-100

? ? ? ? >>> print(a.__bool__())

? ? ? ? True

? ? ? ? ?"""

? ? ? ? pass

?

? ? def __ceil__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Ceiling of an Integral returns itself.

? ? ? ? ?

? ? ? ? ?"""

? ? ? ? pass

?

? ? def __divmod__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return divmod(self, value).?

? ? ? ? >>> a=91

? ? ? ? >>> print(a.__divmod__(9))

? ? ? ? (10, 1)

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def __eq__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self==value.?

? ? ? ? >>> a=91

? ? ? ? >>> print(a.__eq__(90))

? ? ? ? False

? ? ? ? 判斷是否相等,返回bool值

? ? ? ? """

? ? ? ? pass

?

? ? def __float__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ float(self)?

? ? ? ? 轉換為浮點數

? ? ? ? """

? ? ? ? pass

?

? ? def __floordiv__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self//value.

? ? ? ? 返回等于或小于代數商的最大整數值

? ? ? ? >>> a=91

? ? ? ? >>> print(a.__floordiv__(9))

? ? ? ? """

? ? ? ? pass

?

? ? def __floor__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Flooring an Integral returns itself. """

? ? ? ? pass

?

? ? def __format__(self, *args, **kwargs):? # real signature unknown

? ? ? ? pass

?

? ? def __getattribute__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return getattr(self, name). """

? ? ? ? pass

?

? ? def __getnewargs__(self, *args, **kwargs):? # real signature unknown

? ? ? ? pass

?

? ? def __ge__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self>=value.?

? ? ? ? 判斷大于等于某值的真假

? ? ? ? """

? ? ? ? pass

?

? ? def __gt__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self>value.

? ? ? ? 判斷大于某值的真假

? ? ? ? """

? ? ? ? pass

?

? ? def __hash__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return hash(self).?

? ? ? ? >>> a=91029393

? ? ? ? >>> print(a.__hash__())

? ? ? ? >>>?

? ? ? ? 不知道什么原因輸入的結果均為自己

? ? ? ? """

? ? ? ? pass

?

? ? def __index__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self converted to an integer, if self is suitable for use as an index into a list.

? ? ? ? """

? ? ? ? pass

?

? ? def __init__(self, x, base=10):? # known special case of int.__init__

? ? ? ? """

? ? ? ? int(x=0) -> integer

? ? ? ? int(x, base=10) -> integer

?

? ? ? ? Convert a number or string to an integer, or return 0 if no arguments

? ? ? ? are given.? If x is a number, return x.__int__().? For floating point

? ? ? ? numbers, this truncates towards zero.

?

? ? ? ? If x is not a number or if base is given, then x must be a string,

? ? ? ? bytes, or bytearray instance representing an integer literal in the

? ? ? ? given base.? The literal can be preceded by '+' or '-' and be surrounded

? ? ? ? by whitespace.? The base defaults to 10.? Valid bases are 0 and 2-36.

? ? ? ? Base 0 means to interpret the base from the string as an integer literal.

? ? ? ? >>> int('0b100', base=0)

? ? ? ? # (copied from class doc)

? ? ? ? """

? ? ? ? pass

?

? ? def __int__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ int(self) """

? ? ? ? pass

?

? ? def __invert__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ ~self

? ? ? ? >>> a=91

? ? ? ? >>> print(a.__invert__())

? ? ? ? -92

? ? ? ? >>> a=-90

? ? ? ? >>> print(a.__invert__())

? ? ? ? >>> a=90

? ? ? ? >>> print(a.__neg__())

? ? ? ? -90

? ? ? ? >>> a=-90

? ? ? ? >>> print(a.__neg__())

? ? ? ? """

? ? ? ? pass

?

? ? def __le__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self<=value. """

? ? ? ? pass

?

? ? def __lshift__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self<<value.?

? ? ? ? 對二進制數值進行位移

? ? ? ? >>> a=2

? ? ? ? >>> print(bin(a))

? ? ? ? 0b10

? ? ? ? >>> b=a.__lshift__(2)

? ? ? ? >>> print(b)

? ? ? ? >>> print(bin(b))

? ? ? ? 0b1000

? ? ? ? >>> c=a.__rshift__(1)

? ? ? ? >>> print(bin(c))

? ? ? ? 0b1

? ? ? ? >>> b

? ? ? ? >>> c

? ? ? ? """

? ? ? ? pass

?

? ? def __lt__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self<value. """

? ? ? ? pass

?

? ? def __mod__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self%value.?

? ? ? ? >>> a=91

? ? ? ? >>> print(a.__mod__(9))

? ? ? ?

? ? ? ? """

? ? ? ? pass

?

? ? def __mul__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self*value.?

? ? ? ? 乘法的意思

? ? ? ? >>> a=91

? ? ? ? >>> print(a.__mul__(9))

? ? ? ? >>> print(a.__mul__(2))

? ? ? ? """

? ? ? ? pass

?

? ? def __neg__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ -self?

? ? ? ? 負數

? ? ? ? >>> a=91

? ? ? ? >>> print(a.__invert__())

? ? ? ? -92

? ? ? ? >>> a=-90

? ? ? ? >>> print(a.__invert__())

? ? ? ? >>> a=90

? ? ? ? >>> print(a.__neg__())

? ? ? ? -90

? ? ? ? >>> a=-90

? ? ? ? >>> print(a.__neg__())

? ? ? ? """

? ? ? ? pass

?

? ? @staticmethod? # known case of __new__

? ? def __new__(*args, **kwargs):? # real signature unknown

? ? ? ? """ Create and return a new object.? See help(type) for accurate signature. """

? ? ? ? pass

?

? ? def __ne__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self!=value.

? ? ? ? 判斷不等于?

? ? ? ? """

? ? ? ? pass

?

? ? def __or__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self|value.?

? ? ? ? >>> a=255

? ? ? ? >>> bin(a)

? ? ? ? '0b11111111'

? ? ? ? >>> b=128

? ? ? ? >>> bin(b)

? ? ? ? '0b10000000'

? ? ? ? >>> c=a.__or__(b)

? ? ? ? >>> print(c)

? ? ? ? >>> bin(c)

? ? ? ? '0b11111111'

? ? ? ? >>>?

? ? ? ? """

? ? ? ? pass

?

? ? def __pos__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ +self """

? ? ? ? pass

?

? ? def __pow__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return pow(self, value, mod). """

? ? ? ? pass

?

? ? def __radd__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value+self. """

? ? ? ? pass

?

? ? def __rand__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value&self. """

? ? ? ? pass

?

? ? def __rdivmod__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return divmod(value, self). """

? ? ? ? pass

?

? ? def __repr__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return repr(self). """

? ? ? ? pass

?

? ? def __rfloordiv__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value//self. """

? ? ? ? pass

?

? ? def __rlshift__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value<<self. """

? ? ? ? pass

?

? ? def __rmod__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value%self. """

? ? ? ? pass

?

? ? def __rmul__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value*self. """

? ? ? ? pass

?

? ? def __ror__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value|self. """

? ? ? ? pass

?

? ? def __round__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """

? ? ? ? Rounding an Integral returns itself.

? ? ? ? Rounding with an ndigits argument also returns an integer.

? ? ? ? """

? ? ? ? pass

?

? ? def __rpow__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return pow(value, self, mod). """

? ? ? ? pass

?

? ? def __rrshift__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value>>self. """

? ? ? ? pass

?

? ? def __rshift__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self>>value. """

? ? ? ? pass

?

? ? def __rsub__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value-self. """

? ? ? ? pass

?

? ? def __rtruediv__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value/self.?

? ? ? ? >>> a=90

? ? ? ? >>> print(a.__truediv__(8))

? ? ? ? 11.25

? ? ? ? >>> print(a.__div__(8))? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def __rxor__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value^self. """

? ? ? ? pass

?

? ? def __sizeof__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Returns size in memory, in bytes """

? ? ? ? pass

?

? ? def __str__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return str(self). """

? ? ? ? pass

?

? ? def __sub__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self-value. """

? ? ? ? pass

?

? ? def __truediv__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self/value. """

? ? ? ? pass

?

? ? def __trunc__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Truncating an Integral returns itself. """

? ? ? ? pass

?

? ? def __xor__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self^value.?

? ? ? ? 二進制異或

? ? ? ? """

? ? ? ? pass

?

? ? denominator = property(lambda self: object(), lambda self, v: None, lambda self: None)? # default

? ? """the denominator of a rational number in lowest terms"""

?

? ? imag = property(lambda self: object(), lambda self, v: None, lambda self: None)? # default

? ? """the imaginary part of a complex number"""

?

? ? numerator = property(lambda self: object(), lambda self, v: None, lambda self: None)? # default

? ? """the numerator of a rational number in lowest terms"""

?

? ? real = property(lambda self: object(), lambda self, v: None, lambda self: None)? # default

? ? """the real part of a complex number"""

?

''''''?

? ??

? ?class int

? ?

? 二、浮點型float的命令匯總?

??

? ?

? ?

? ??

? ? class float(object):

? ? """

? ? float(x) -> floating point number

?

? ? Convert a string or number to a floating point number, if possible.

? ? """

?

? ? def as_integer_ratio(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? float.as_integer_ratio() -> (int, int)

? ? ? ? 輸出一對,除于等于浮點數的整數

? ? ? ? Return a pair of integers, whose ratio is exactly equal to the original

? ? ? ? float and with a positive denominator.

? ? ? ? Raise OverflowError on infinities and a ValueError on NaNs.

?

? ? ? ? >>> (10.0).as_integer_ratio()

? ? ? ? (10, 1)

? ? ? ? >>> (0.0).as_integer_ratio()

? ? ? ? (0, 1)

? ? ? ? >>> (-.25).as_integer_ratio()

? ? ? ? (-1, 4)

? ? ? ? """

? ? ? ? pass

?

? ? def conjugate(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self, the complex conjugate of any float.

? ? ? ? ?>>> a=0.000000001

? ? ? ? >>> a.conjugate()

? ? ? ? 1e-09

? ? ? ? ?"""

? ? ? ? pass

?

? ? @staticmethod? # known case

? ? def fromhex(string):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? float.fromhex(string) -> float

? ? ? ? 十六進制文檔轉為10十進制浮點數

? ? ? ? Create a floating-point number from a hexadecimal string.

? ? ? ? >>> float.fromhex('0x1.ffffp10')

? ? ? ? 2047.984375

? ? ? ? >>> float.fromhex('-0x1p-1074')

? ? ? ? -5e-324

? ? ? ? """

? ? ? ? return 0.0

?

? ? def hex(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? float.hex() -> string

? ? ? ? 轉為十六進制

? ? ? ? Return a hexadecimal representation of a floating-point number.

? ? ? ? >>> (-0.1).hex()

? ? ? ? '-0x1.999999999999ap-4'

? ? ? ? >>> 3.14159.hex()

? ? ? ? '0x1.921f9f01b866ep+1'

? ? ? ? """

? ? ? ? return ""

?

? ? def is_integer(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return True if the float is an integer.?

? ? ? ? 判斷是否整數

? ? ? ? >>> a=10.0000

? ? ? ? >>> a.is_integer()

? ? ? ? True

? ? ? ? >>> a=10.0001

? ? ? ? >>> a.is_integer()

? ? ? ? False

? ? ? ? """

? ? ? ? pass

?

? ? def __abs__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ abs(self)?

? ? ? ? 絕對值

? ? ? ? """

? ? ? ? pass

?

? ? def __add__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self+value.?

? ? ? ? 求和

? ? ? ? """

? ? ? ? pass

?

? ? def __bool__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ self != 0?

? ? ? ? 布爾非0時候為真

? ? ? ? """

? ? ? ? pass

?

? ? def __divmod__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return divmod(self, value).?

? ? ? ? >>> a=91.0001

? ? ? ? >>> print(a.__divmod__(9))

? ? ? ? (10.0, 1.0001000000000033)

? ? ? ? >>>?

? ? ? ? """

? ? ? ? pass

?

? ? def __eq__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self==value. """

? ? ? ? pass

?

? ? def __float__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ float(self) """

? ? ? ? pass

?

? ? def __floordiv__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self//value. """

? ? ? ? pass

?

? ? def __format__(self, format_spec):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? float.__format__(format_spec) -> string

?

? ? ? ? Formats the float according to format_spec.

? ? ? ? """

? ? ? ? return ""

?

? ? def __getattribute__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return getattr(self, name). """

? ? ? ? pass

?

? ? def __getformat__(self, typestr):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? float.__getformat__(typestr) -> string

?

? ? ? ? You probably don't want to use this function.? It exists mainly to be

? ? ? ? used in Python's test suite.

?

? ? ? ? typestr must be 'double' or 'float'.? This function returns whichever of

? ? ? ? 'unknown', 'IEEE, big-endian' or 'IEEE, little-endian' best describes the

? ? ? ? format of floating point numbers used by the C type named by typestr.

? ? ? ? """

? ? ? ? return ""

?

? ? def __getnewargs__(self, *args, **kwargs):? # real signature unknown

? ? ? ? pass

?

? ? def __ge__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self>=value. """

? ? ? ? pass

?

? ? def __gt__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self>value. """

? ? ? ? pass

?

? ? def __hash__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return hash(self).?

? ? ? ? >>> print(a.__hash__())

? ? ? ? """

? ? ? ? pass

?

? ? def __init__(self, x):? # real signature unknown; restored from __doc__

? ? ? ? pass

?

? ? def __int__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ int(self) """

? ? ? ? pass

?

? ? def __le__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self<=value. """

? ? ? ? pass

?

? ? def __lt__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self<value. """

? ? ? ? pass

?

? ? def __mod__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self%value. """

? ? ? ? pass

?

? ? def __mul__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self*value. """

? ? ? ? pass

?

? ? def __neg__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ -self """

? ? ? ? pass

?

? ? @staticmethod? # known case of __new__

? ? def __new__(*args, **kwargs):? # real signature unknown

? ? ? ? """ Create and return a new object.? See help(type) for accurate signature. """

? ? ? ? pass

?

? ? def __ne__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self!=value. """

? ? ? ? pass

?

? ? def __pos__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ +self """

? ? ? ? pass

?

? ? def __pow__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return pow(self, value, mod). """

? ? ? ? pass

?

? ? def __radd__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value+self. """

? ? ? ? pass

?

? ? def __rdivmod__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return divmod(value, self). """

? ? ? ? pass

?

? ? def __repr__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return repr(self). """

? ? ? ? pass

?

? ? def __rfloordiv__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value//self. """

? ? ? ? pass

?

? ? def __rmod__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value%self. """

? ? ? ? pass

?

? ? def __rmul__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value*self. """

? ? ? ? pass

?

? ? def __round__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """

? ? ? ? Return the Integral closest to x, rounding half toward even.

? ? ? ? When an argument is passed, work like built-in round(x, ndigits).

? ? ? ? """

? ? ? ? pass

?

? ? def __rpow__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return pow(value, self, mod). """

? ? ? ? pass

?

? ? def __rsub__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value-self. """

? ? ? ? pass

?

? ? def __rtruediv__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value/self. """

? ? ? ? pass

?

? ? def __setformat__(self, typestr, fmt):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? float.__setformat__(typestr, fmt) -> None

?

? ? ? ? You probably don't want to use this function.? It exists mainly to be

? ? ? ? used in Python's test suite.

?

? ? ? ? typestr must be 'double' or 'float'.? fmt must be one of 'unknown',

? ? ? ? 'IEEE, big-endian' or 'IEEE, little-endian', and in addition can only be

? ? ? ? one of the latter two if it appears to match the underlying C reality.

?

? ? ? ? Override the automatic determination of C-level floating point type.

? ? ? ? This affects how floats are converted to and from binary strings.

? ? ? ? """

? ? ? ? pass

?

? ? def __str__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return str(self). """

? ? ? ? pass

?

? ? def __sub__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self-value. """

? ? ? ? pass

?

? ? def __truediv__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self/value. """

? ? ? ? pass

?

? ? def __trunc__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return the Integral closest to x between 0 and x.

? ? ? ? 轉為整數,不用四舍五入

? ? ? ? >>> a=91.49999999

? ? ? ? >>> print(a.__trunc__())

? ? ? ? >>> a=91.500000001

? ? ? ? >>> print(a.__trunc__())

? ? ? ? >>> a=91.999999999

? ? ? ? >>> print(a.__trunc__())

? ? ? ? ?"""

? ? ? ? pass

?

? ? imag = property(lambda self: object(), lambda self, v: None, lambda self: None)? # default

? ? """the imaginary part of a complex number"""

?

? ? real = property(lambda self: object(), lambda self, v: None, lambda self: None)? # default

? ? """the real part of a complex number"""?

? ??

? ?class float

? ?

? 三、字符串Str的命令匯總?

??

? ?

? ?

? ??

? ? str

?

?

class str(object):

? ? """

? ? str(object='') -> str

? ? str(bytes_or_buffer[, encoding[, errors]]) -> str

?

? ? Create a new string object from the given object. If encoding or

? ? errors is specified, then the object must expose a data buffer

? ? that will be decoded using the given encoding and error handler.

? ? Otherwise, returns the result of object.__str__() (if defined)

? ? or repr(object).

? ? encoding defaults to sys.getdefaultencoding().

? ? errors defaults to 'strict'.

? ? """

?

? ? def capitalize(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? 第一個字母轉換為大寫

? ? ? ? >>> a='winter'

? ? ? ? >>> print(a.capitalize())

? ? ? ? Winter

? ? ? ? S.capitalize() -> str

?

? ? ? ? Return a capitalized version of S, i.e. make the first character

? ? ? ? have upper case and the rest lower case.

? ? ? ? """

? ? ? ? return ""

?

? ? def casefold(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? 把所有的大小字面轉換為小寫字母

? ? ? ? >>> a='Winter'

? ? ? ? >>> print(a.casefold())

? ? ? ? winter

? ? ? ? >>> a='WinterSam'

? ? ? ? >>> print(a.casefold())

? ? ? ? wintersam

? ? ? ? S.casefold() -> str

?

? ? ? ? Return a version of S suitable for caseless comparisons.

? ? ? ? """

? ? ? ? return ""

?

? ? def center(self, width, fillchar=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? >>> a.center(40,"*")

? ? ? ? '*****************Winter*****************'

? ? ? ? S.center(width[, fillchar]) -> str

?

? ? ? ? Return S centered in a string of length width. Padding is

? ? ? ? done using the specified fill character (default is a space)

? ? ? ? """

? ? ? ? return ""

?

? ? def count(self, sub, start=None, end=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? >>> a='Return S centered in a string of length width. Padding is done using the specified fill character (default is a space)'

? ? ? ? >>> a.count('a')

? ? ? ? >>> a.count('s')

? ? ? ? >>> a.count('a',0,40)

? ? ? ? >>> a.count('a',0,140)

? ? ? ? >>> a.count('a',0,80)

? ? ? ? >>> a.count('a',0,120)

? ? ? ? >>> a.count('a',80,120)

? ? ? ? >>> a.count("Return")

? ? ? ? S.count(sub[, start[, end]]) -> int

?

? ? ? ? Return the number of non-overlapping occurrences of substring sub in

? ? ? ? string S[start:end].? Optional arguments start and end are

? ? ? ? interpreted as in slice notation.

? ? ? ? """

? ? ? ? return 0

?

? ? def encode(self, encoding='utf-8', errors='strict'):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.encode(encoding='utf-8', errors='strict') -> bytes

? ? ? ? 查看http://www.cnblogs.com/wintershen/p/6673828.html

? ? ? ??

? ? ? ? Encode S using the codec registered for encoding. Default encoding

? ? ? ? is 'utf-8'. errors may be given to set a different error

? ? ? ? handling scheme. Default is 'strict' meaning that encoding errors raise

? ? ? ? a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and

? ? ? ? 'xmlcharrefreplace' as well as any other name registered with

? ? ? ? codecs.register_error that can handle UnicodeEncodeErrors.

? ? ? ? """

? ? ? ? return b""

?

? ? def endswith(self, suffix, start=None, end=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.endswith(suffix[, start[, end]]) -> bool

? ? ? ? 判斷 最后一個是否為輸入的

? ? ? ? >>> a='Return S centered in a string of length width. Padding is done using the specified fill character (default is a space)'

? ? ? ? >>> a.endswith("n")

? ? ? ? False

? ? ? ? >>> a.endswith(')')

? ? ? ? True

? ? ? ? Return True if S ends with the specified suffix, False otherwise.

? ? ? ? With optional start, test S beginning at that position.

? ? ? ? With optional end, stop comparing S at that position.

? ? ? ? suffix can also be a tuple of strings to try.

? ? ? ? """

? ? ? ? return False

?

? ? def expandtabs(self, tabsize=8):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.expandtabs(tabsize=8) -> str

? ? ? ? 把tab 轉為為8個空格

?

? ? ? ? Return a copy of S where all tab characters are expanded using spaces.

? ? ? ? If tabsize is not given, a tab size of 8 characters is assumed.

? ? ? ? """

? ? ? ? return ""

?

? ? def find(self, sub, start=None, end=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.find(sub[, start[, end]]) -> int

? ? ? ? >>> a='Return S centered in a string of length width. Padding is done using the specified fill character (default is a space)'

? ? ? ? >>> a.find('Return')

? ? ? ? >>> a.find('space')

? ? ? ? >>> a.find('winter')

? ? ? ? -1

? ? ? ? Return the lowest index in S where substring sub is found,

? ? ? ? such that sub is contained within S[start:end].? Optional

? ? ? ? arguments start and end are interpreted as in slice notation.

?

? ? ? ? Return -1 on failure.

? ? ? ? """

? ? ? ? return 0

?

? ? def format(self, *args, **kwargs):? # known special case of str.format

? ? ? ? """

? ? ? ? S.format(*args, **kwargs) -> str

?

? ? ? ? Return a formatted version of S, using substitutions from args and kwargs.

? ? ? ? The substitutions are identified by braces ('{' and '}').

? ? ? ? """

? ? ? ? pass

?

? ? def format_map(self, mapping):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.format_map(mapping) -> str

?

? ? ? ? Return a formatted version of S, using substitutions from mapping.

? ? ? ? The substitutions are identified by braces ('{' and '}').

? ? ? ? """

? ? ? ? return ""

?

? ? def index(self, sub, start=None, end=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.index(sub[, start[, end]]) -> int

? ? ? ? >>> a.index('Return')

? ? ? ? >>> a.index('space')

? ? ? ? >>> a.index('winter')

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#46>", line 1, in <module>

? ? ? ? ? ? a.index('winter')

? ? ? ? ValueError: substring not found

? ? ? ??

? ? ? ? Like S.find() but raise ValueError when the substring is not found.

? ? ? ? """

? ? ? ? return 0

?

? ? def isalnum(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.isalnum() -> bool

? ? ? ? 判斷是否數字,包括二進制,八進制,十六進制的數字

? ? ? ? Return True if all characters in S are alphanumeric

? ? ? ? and there is at least one character in S, False otherwise.

? ? ? ? """

? ? ? ? return False

?

? ? def isalpha(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.isalpha() -> bool

? ? ? ? 判斷是否字母,只能全部均為字母

? ? ? ? >>> a='a'

? ? ? ? >>> a.isalpha()

? ? ? ? True

? ? ? ? >>> a='abc'

? ? ? ? >>> a.isalpha()

? ? ? ? True

? ? ? ? >>> a='abc abc'

? ? ? ? >>> a.isalpha()

? ? ? ? False

? ? ? ? Return True if all characters in S are alphabetic

? ? ? ? and there is at least one character in S, False otherwise.

? ? ? ? """

? ? ? ? return False

?

? ? def isdecimal(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.isdecimal() -> bool

? ? ? ? >>> a='1000'

? ? ? ? >>> a.isdecimal()

? ? ? ? True

? ? ? ? >>> a='0xff'

? ? ? ? >>> a.isdecimal()

? ? ? ? False

? ? ? ? >>> a.isalnum()

? ? ? ? True

? ? ? ? Return True if there are only decimal characters in S,

? ? ? ? False otherwise.

? ? ? ? """

? ? ? ? return False

?

? ? def isdigit(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.isdigit() -> bool

? ? ? ? 判斷是否數字???

? ? ? ? Return True if all characters in S are digits

? ? ? ? and there is at least one character in S, False otherwise.

? ? ? ? """

? ? ? ? return False

?

? ? def isidentifier(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.isidentifier() -> bool

? ? ? ? 判斷是否是一個單獨的英文單詞?

? ? ? ? >>> a='winter'

? ? ? ? >>> b='Winter is a man'

? ? ? ? >>> c='Winter Come'

? ? ? ? >>> a.isidentifier()

? ? ? ? True

? ? ? ? >>> b.isidentifier()

? ? ? ? False

? ? ? ? >>> c.isidentifier()

? ? ? ? False

? ? ? ? >>> d='100winter'

? ? ? ? >>> d.isidentifier()

? ? ? ? False

? ? ? ? >>> e='winter winter'

? ? ? ? False

? ? ? ? >>> e.isidentifier()

? ? ? ? >>> f='def'

? ? ? ? >>> f.isidentifier()

? ? ? ? True

? ? ? ? >>> g='abc'

? ? ? ? >>> g.isidentifier()

? ? ? ? True

? ? ? ??

? ? ? ? Return True if S is a valid identifier according

? ? ? ? to the language definition.

?

? ? ? ? Use keyword.iskeyword() to test for reserved identifiers

? ? ? ? such as "def" and "class".

? ? ? ? """

? ? ? ? return False

?

? ? def islower(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.islower() -> bool

? ? ? ? 判斷是否全部都是小寫字母,包括特殊字符空格等等

? ? ? ? >>> a='winterS'

? ? ? ? >>> b='winter winter'

? ? ? ? >>> c='winterisamanandtherearemuchmore'

? ? ? ? >>> a.islower()

? ? ? ? False

? ? ? ? >>> b.islower()

? ? ? ? True

? ? ? ? >>> c.islower()

? ? ? ? True

? ? ? ? >>> d='winter is a *******'

? ? ? ? >>> d.islower()

? ? ? ? True

? ? ? ? Return True if all cased characters in S are lowercase and there is

? ? ? ? at least one cased character in S, False otherwise.

? ? ? ? """

? ? ? ? return False

?

? ? def isnumeric(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.isnumeric() -> bool

? ? ? ? 判斷是否只是數字

? ? ? ? >>> a='winter100'

? ? ? ? >>> b='winter is 100'

? ? ? ? >>> a.isnumeric()

? ? ? ? False

? ? ? ? >>> b.isnumeric()

? ? ? ? False

? ? ? ? >>> c='123459384949'

? ? ? ? >>> c.isnumeric()

? ? ? ? True

? ? ? ? >>> d='0xff'

? ? ? ? >>> d.isnumeric()

? ? ? ? False

? ? ? ? Return True if there are only numeric characters in S,

? ? ? ? False otherwise.

? ? ? ? """

? ? ? ? return False

?

? ? def isprintable(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.isprintable() -> bool

? ? ? ? 判斷是否全部都可以打印

? ? ? ? >>> a='winter\nwinter'

? ? ? ? >>> print(a)

? ? ? ? winter

? ? ? ? winter

? ? ? ? >>> a.isprintable()

? ? ? ? False

? ? ? ??

? ? ? ? Return True if all characters in S are considered

? ? ? ? printable in repr() or S is empty, False otherwise.

? ? ? ? """

? ? ? ? return False

?

? ? def isspace(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.isspace() -> bool

? ? ? ? 判斷是否為空

? ? ? ? >>> a='winter winter'

? ? ? ? >>> b='? ? ? ? ? ? ? ?'

? ? ? ? >>> c='? ? ?' #tab

? ? ? ? >>> a.isspace()

? ? ? ? False

? ? ? ? >>> b.isspace()

? ? ? ? True

? ? ? ? >>> c.isspace()

? ? ? ? True

? ? ? ? Return True if all characters in S are whitespace

? ? ? ? and there is at least one character in S, False otherwise.

? ? ? ? """

? ? ? ? return False

?

? ? def istitle(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.istitle() -> bool

? ? ? ? 判斷是否里面每一個單詞對應的首字母均為大寫

? ? ? ? >>> a="Winter is coming"

? ? ? ? >>> b='Winter Is Coming'

? ? ? ? >>> c='winteriscomIng'

? ? ? ? >>> a.istitle()

? ? ? ? False

? ? ? ? >>> b.istitle()

? ? ? ? True

? ? ? ? >>> c.istitle()

? ? ? ? False

? ? ? ? >>> d='Winteriscoming'

? ? ? ? >>> d.istitle()

? ? ? ? True

? ? ? ??

? ? ? ? Return True if S is a titlecased string and there is at least one

? ? ? ? character in S, i.e. upper- and titlecase characters may only

? ? ? ? follow uncased characters and lowercase characters only cased ones.

? ? ? ? Return False otherwise.

? ? ? ? """

? ? ? ? return False

?

? ? def isupper(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.isupper() -> bool

? ? ? ? 判斷是否所有字母均為大寫字母

? ? ? ? Return True if all cased characters in S are uppercase and there is

? ? ? ? at least one cased character in S, False otherwise.

? ? ? ? """

? ? ? ? return False

?

? ? def join(self, iterable):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.join(iterable) -> str

? ? ? ? 把輸入拆開每一個字面,把S復制加入到每一個拆開的字符中間

? ? ? ? >>> a='winter'

? ? ? ? >>> b='11111'

? ? ? ? >>> c=a.join(b)

? ? ? ? >>> print(c)

? ? ? ? 1winter1winter1winter1winter1

? ? ? ??

? ? ? ? Return a string which is the concatenation of the strings in the

? ? ? ? iterable.? The separator between elements is S.

? ? ? ? """

? ? ? ? return ""

?

? ? def ljust(self, width, fillchar=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.ljust(width[, fillchar]) -> str

?

? ? ? ? Return S left-justified in a Unicode string of length width. Padding is

? ? ? ? done using the specified fill character (default is a space).

? ? ? ? """

? ? ? ? return ""

?

? ? def lower(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.lower() -> str

?

? ? ? ? Return a copy of the string S converted to lowercase.

? ? ? ? """

? ? ? ? return ""

?

? ? def lstrip(self, chars=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.lstrip([chars]) -> str

?

? ? ? ? Return a copy of the string S with leading whitespace removed.

? ? ? ? If chars is given and not None, remove characters in chars instead.

? ? ? ? """

? ? ? ? return ""

?

? ? def maketrans(self, *args, **kwargs):? # real signature unknown

? ? ? ? """

? ? ? ? Return a translation table usable for str.translate().

?

? ? ? ? If there is only one argument, it must be a dictionary mapping Unicode

? ? ? ? ordinals (integers) or characters to Unicode ordinals, strings or None.

? ? ? ? Character keys will be then converted to ordinals.

? ? ? ? If there are two arguments, they must be strings of equal length, and

? ? ? ? in the resulting dictionary, each character in x will be mapped to the

? ? ? ? character at the same position in y. If there is a third argument, it

? ? ? ? must be a string, whose characters will be mapped to None in the result.

? ? ? ? """

? ? ? ? pass

?

? ? def partition(self, sep):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.partition(sep) -> (head, sep, tail)

?

? ? ? ? Search for the separator sep in S, and return the part before it,

? ? ? ? the separator itself, and the part after it.? If the separator is not

? ? ? ? found, return S and two empty strings.

? ? ? ? """

? ? ? ? pass

?

? ? def replace(self, old, new, count=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.replace(old, new[, count]) -> str

?

? ? ? ? Return a copy of S with all occurrences of substring

? ? ? ? old replaced by new.? If the optional argument count is

? ? ? ? given, only the first count occurrences are replaced.

? ? ? ? """

? ? ? ? return ""

?

? ? def rfind(self, sub, start=None, end=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.rfind(sub[, start[, end]]) -> int

?

? ? ? ? Return the highest index in S where substring sub is found,

? ? ? ? such that sub is contained within S[start:end].? Optional

? ? ? ? arguments start and end are interpreted as in slice notation.

?

? ? ? ? Return -1 on failure.

? ? ? ? """

? ? ? ? return 0

?

? ? def rindex(self, sub, start=None, end=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.rindex(sub[, start[, end]]) -> int

?

? ? ? ? Like S.rfind() but raise ValueError when the substring is not found.

? ? ? ? """

? ? ? ? return 0

?

? ? def rjust(self, width, fillchar=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.rjust(width[, fillchar]) -> str

? ? ? ? 插入,與center功能類似

? ? ? ? >>> a='winter'

? ? ? ? >>> a.rjust(40,"*")

? ? ? ? '**********************************winter'

? ? ? ??

? ? ? ? Return S right-justified in a string of length width. Padding is

? ? ? ? done using the specified fill character (default is a space).

? ? ? ? """

? ? ? ? return ""

?

? ? def rpartition(self, sep):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.rpartition(sep) -> (head, sep, tail)

? ? ? ? 從右向左尋找特定的詞語,把找的詞語有''表示出來

? ? ? ? >>> a.rpartition('part')

? ? ? ? ('Search for the separator sep in S, starting at the end of S, and return the part before it, the separator itself, and the ', 'part', ' after it.? If the separator is not found, return two empty strings and S.')

? ? ? ? >>> print(a)

? ? ? ? Search for the separator sep in S, starting at the end of S, and return the part before it, the separator itself, and the part after it.? If the separator is not found, return two empty strings and S.

? ? ? ? >>>?

? ? ? ? Search for the separator sep in S, starting at the end of S, and return

? ? ? ? the part before it, the separator itself, and the part after it.? If the

? ? ? ? separator is not found, return two empty strings and S.

? ? ? ? """

? ? ? ? pass

?

? ? def rsplit(self, sep=None, maxsplit=-1):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.rsplit(sep=None, maxsplit=-1) -> list of strings

? ? ? ? 分割,按關鍵詞把對應,關鍵字前后的內容分割為列表。可以設置分割多少個。

? ? ? ? >>> a.split('part')

? ? ? ? ['Search for the separator sep in S, starting at the end of S, and return the ', ' before it, the separator itself, and the ', ' after it.? If the separator is not found, return two empty strings and S.']

? ? ? ? Return a list of the words in S, using sep as the

? ? ? ? delimiter string, starting at the end of the string and

? ? ? ? working to the front.? If maxsplit is given, at most maxsplit

? ? ? ? splits are done. If sep is not specified, any whitespace string

? ? ? ? is a separator.

? ? ? ? """

? ? ? ? return []

?

? ? def rstrip(self, chars=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.rstrip([chars]) -> str

? ? ? ? 去掉指定的內容。

? ? ? ? Return a copy of the string S with trailing whitespace removed.

? ? ? ? If chars is given and not None, remove characters in chars instead.

? ? ? ? """

? ? ? ? return ""

?

? ? def split(self, sep=None, maxsplit=-1):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.split(sep=None, maxsplit=-1) -> list of strings

?

? ? ? ? Return a list of the words in S, using sep as the

? ? ? ? delimiter string.? If maxsplit is given, at most maxsplit

? ? ? ? splits are done. If sep is not specified or is None, any

? ? ? ? whitespace string is a separator and empty strings are

? ? ? ? removed from the result.

? ? ? ? """

? ? ? ? return []

?

? ? def splitlines(self, keepends=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.splitlines([keepends]) -> list of strings

? ? ? ? 去掉字符串里面的行。

? ? ? ? Return a list of the lines in S, breaking at line boundaries.

? ? ? ? Line breaks are not included in the resulting list unless keepends

? ? ? ? is given and true.

? ? ? ? """

? ? ? ? return []

?

? ? def startswith(self, prefix, start=None, end=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.startswith(prefix[, start[, end]]) -> bool

? ? ? ? 與endswitch類似,查看開頭的內容是輸入內容。

? ? ? ? Return True if S starts with the specified prefix, False otherwise.

? ? ? ? With optional start, test S beginning at that position.

? ? ? ? With optional end, stop comparing S at that position.

? ? ? ? prefix can also be a tuple of strings to try.

? ? ? ? """

? ? ? ? return False

?

? ? def strip(self, chars=None):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.strip([chars]) -> str

?

? ? ? ? Return a copy of the string S with leading and trailing

? ? ? ? whitespace removed.

? ? ? ? If chars is given and not None, remove characters in chars instead.

? ? ? ? """

? ? ? ? return ""

?

? ? def swapcase(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.swapcase() -> str

? ? ? ? 大小字母互換。

? ? ? ? >>> a='winTER'

? ? ? ? >>> a.swapcase()

? ? ? ? 'WINter'

? ? ? ??

? ? ? ? Return a copy of S with uppercase characters converted to lowercase

? ? ? ? and vice versa.

? ? ? ? """

? ? ? ? return ""

?

? ? def title(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.title() -> str

? ? ? ? 把字體轉換為標題的格式

? ? ? ? >>> a='winTER'

? ? ? ? >>> a.title()

? ? ? ? 'Winter'

? ? ? ? >>> a='winter is coming'

? ? ? ? >>> a.title()

? ? ? ? 'Winter Is Coming'

? ? ? ??

? ? ? ? Return a titlecased version of S, i.e. words start with title case

? ? ? ? characters, all remaining cased characters have lower case.

? ? ? ? """

? ? ? ? return ""

?

? ? def translate(self, table):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.translate(table) -> str

?

? ? ? ? 轉換,需要先做一個對應表,最后一個表示刪除字符集合

? ? ? ? intab = "aeiou"

? ? ? ? outtab = "12345"

? ? ? ? trantab = maketrans(intab, outtab)? <<<<<maketrans is not defined in 3.5

? ? ? ? str = "this is string example....wow!!!"

? ? ? ? print str.translate(trantab, 'xm')

?

? ? ? ? Return a copy of the string S in which each character has been mapped

? ? ? ? through the given translation table. The table must implement

? ? ? ? lookup/indexing via __getitem__, for instance a dictionary or list,

? ? ? ? mapping Unicode ordinals to Unicode ordinals, strings, or None. If

? ? ? ? this operation raises LookupError, the character is left untouched.

? ? ? ? Characters mapped to None are deleted.

? ? ? ? """

? ? ? ? return ""

?

? ? def upper(self):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.upper() -> str

?

? ? ? ? Return a copy of S converted to uppercase.

? ? ? ? """

? ? ? ? return ""

?

? ? def zfill(self, width):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.zfill(width) -> str

? ? ? ? 輸入長度,用0補充到對應長度

? ? ? ? >>> a.zfill(40)

? ? ? ? '000000000000000000000? ? ? ? ? ? ?winter'

? ? ? ? >>> a.zfill(8)

? ? ? ? '? ? ? ? ? ? ?winter'

? ? ? ? Pad a numeric string S with zeros on the left, to fill a field

? ? ? ? of the specified width. The string S is never truncated.

? ? ? ? """

? ? ? ? return ""

?

? ? def __add__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self+value. """

? ? ? ? pass

?

? ? def __contains__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return key in self. """

? ? ? ? pass

?

? ? def __eq__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self==value. """

? ? ? ? pass

?

? ? def __format__(self, format_spec):? # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? S.__format__(format_spec) -> str

?

? ? ? ? Return a formatted version of S as described by format_spec.

? ? ? ? """

? ? ? ? return ""

?

? ? def __getattribute__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return getattr(self, name). """

? ? ? ? pass

?

? ? def __getitem__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self[key]. """

? ? ? ? pass

?

? ? def __getnewargs__(self, *args, **kwargs):? # real signature unknown

? ? ? ? pass

?

? ? def __ge__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self>=value. """

? ? ? ? pass

?

? ? def __gt__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self>value. """

? ? ? ? pass

?

? ? def __hash__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return hash(self). """

? ? ? ? pass

?

? ? def __init__(self, value='', encoding=None, errors='strict'):? # known special case of str.__init__

? ? ? ? """

? ? ? ? str(object='') -> str

? ? ? ? str(bytes_or_buffer[, encoding[, errors]]) -> str

?

? ? ? ? Create a new string object from the given object. If encoding or

? ? ? ? errors is specified, then the object must expose a data buffer

? ? ? ? that will be decoded using the given encoding and error handler.

? ? ? ? Otherwise, returns the result of object.__str__() (if defined)

? ? ? ? or repr(object).

? ? ? ? encoding defaults to sys.getdefaultencoding().

? ? ? ? errors defaults to 'strict'.

? ? ? ? # (copied from class doc)

? ? ? ? """

? ? ? ? pass

?

? ? def __iter__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Implement iter(self). """

? ? ? ? pass

?

? ? def __len__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return len(self). """

? ? ? ? pass

?

? ? def __le__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self<=value. """

? ? ? ? pass

?

? ? def __lt__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self<value. """

? ? ? ? pass

?

? ? def __mod__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self%value. """

? ? ? ? pass

?

? ? def __mul__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self*value.n """

? ? ? ? pass

?

? ? @staticmethod? # known case of __new__

? ? def __new__(*args, **kwargs):? # real signature unknown

? ? ? ? """ Create and return a new object.? See help(type) for accurate signature. """

? ? ? ? pass

?

? ? def __ne__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self!=value. """

? ? ? ? pass

?

? ? def __repr__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return repr(self). """

? ? ? ? pass

?

? ? def __rmod__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value%self. """

? ? ? ? pass

?

? ? def __rmul__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self*value. """

? ? ? ? pass

?

? ? def __sizeof__(self):? # real signature unknown; restored from __doc__

? ? ? ? """ S.__sizeof__() -> size of S in memory, in bytes """

? ? ? ? pass

?

? ? def __str__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return str(self). """

? ? ? ? pass?

? ??

? ?class str

? ?

? 四、列表List的命令匯總?

??

? ?

? ?

? ??

? ? class list(object):

? ? """

? ? list() -> new empty list

? ? list(iterable) -> new list initialized from iterable's items

? ? """

? ? def append(self, p_object): # real signature unknown; restored from __doc__

? ? ? ? """ L.append(object) -> None -- append object to end?

? ? ? ? 添加最后。

? ? ? ? >>> a=[1,2,]

? ? ? ? >>> print(a)

? ? ? ? [1, 2]

? ? ? ? >>> a.append('winter')

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 'winter']

? ? ? ? >>> a.append('winter2',)

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 'winter', 'winter2']

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def clear(self): # real signature unknown; restored from __doc__

? ? ? ? """ L.clear() -> None -- remove all items from L?

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 'winter', 'winter2']

? ? ? ? >>> a.clear()

? ? ? ? >>> print(a)

? ? ? ? []

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def copy(self): # real signature unknown; restored from __doc__

? ? ? ? """ L.copy() -> list -- a shallow copy of L

? ? ? ? >>> a=['winter',1,2,0,]

? ? ? ? >>> a.copy()

? ? ? ? ['winter', 1, 2, 0]

? ? ? ? >>> print()

? ? ? ??

? ? ? ? >>> print(a)

? ? ? ? ['winter', 1, 2, 0]

? ? ? ? >>> b=['winter',]

? ? ? ? >>> a.copy(b)

? ? ? ? >>> b=a.copy()

? ? ? ? >>> print(b)

? ? ? ? ['winter', 1, 2, 0]

? ? ? ? ?

? ? ? ? ?"""

? ? ? ? return []

?

? ? def count(self, value): # real signature unknown; restored from __doc__

? ? ? ? """ L.count(value) -> integer -- return number of occurrences of value

? ? ? ? >>> print(b)

? ? ? ? ['winter', 1, 2, 0]

? ? ? ? >>> b.count(1)

? ? ? ? >>> b.count(3)

? ? ? ? >>> b.count('winter')

? ? ? ? ?

? ? ? ? ?"""

? ? ? ? return 0

?

? ? def extend(self, iterable): # real signature unknown; restored from __doc__

? ? ? ? """ L.extend(iterable) -> None -- extend list by appending elements from the iterable?

? ? ? ? >>> a=[1,2,3]

? ? ? ? >>> a.extend('1111')

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 3, '1', '1', '1', '1']

? ? ? ? >>> a.extend([2,2])

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 3, '1', '1', '1', '1', 2, 2]

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def index(self, value, start=None, stop=None): # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? L.index(value, [start, [stop]]) -> integer -- return first index of value.

? ? ? ? Raises ValueError if the value is not present.

? ? ? ? """

? ? ? ? return 0

?

? ? def insert(self, index, p_object): # real signature unknown; restored from __doc__

? ? ? ? """ L.insert(index, object) -- insert object before index?

? ? ? ? 插入到制定的位置

? ? ? ? """

? ? ? ? pass

?

? ? def pop(self, index=None): # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? L.pop([index]) -> item -- remove and return item at index (default last).

? ? ? ? Raises IndexError if list is empty or index is out of range.

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 3, '1', '1', '1', '1']

? ? ? ? >>> a.extend([2,2])

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 3, '1', '1', '1', '1', 2, 2]

? ? ? ? >>> b=a.pop()

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 3, '1', '1', '1', '1', 2]

? ? ? ? >>> print(b)

? ? ? ? >>> c=a.pop(1)

? ? ? ? >>> print(a)

? ? ? ? [1, 3, '1', '1', '1', '1', 2]

? ? ? ? >>> print(c)

? ? ? ??

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def remove(self, value): # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? L.remove(value) -> None -- remove first occurrence of value.

? ? ? ? Raises ValueError if the value is not present.

? ? ? ??

? ? ? ? >>> print(a)

? ? ? ? [1, 3, '1', '1', '1', '1', 2]

? ? ? ? >>> b=a.remove('1')

? ? ? ? >>> print(b)

? ? ? ? None

? ? ? ? >>> print(a)

? ? ? ? [1, 3, '1', '1', '1', 2]

? ? ? ? >>> a.insert('1',1)

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#70>", line 1, in <module>

? ? ? ? ? ? a.insert('1',1)

? ? ? ? TypeError: 'str' object cannot be interpreted as an integer

? ? ? ? >>>? a.insert(1,'1')

? ? ? ? ?

? ? ? ? SyntaxError: unexpected indent

? ? ? ? >>> a.insert(1,'1')

? ? ? ? >>> print(a)

? ? ? ? [1, '1', 3, '1', '1', '1', 2]

? ? ? ? >>> a.remove('1')

? ? ? ? >>> print(a)

? ? ? ? [1, 3, '1', '1', '1', 2]

? ? ? ? >>> a.remove(99)

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#76>", line 1, in <module>

? ? ? ? ? ? a.remove(99)

? ? ? ? ValueError: list.remove(x): x not in list

? ? ? ? """

? ? ? ? pass

?

? ? def reverse(self): # real signature unknown; restored from __doc__

? ? ? ? """ L.reverse() -- reverse *IN PLACE*?

? ? ? ? >>> print(a)

? ? ? ? [2, '1', '1', '1', 3, 1]

? ? ? ? >>> a.reverse()

? ? ? ? >>> print(a)

? ? ? ? [1, 3, '1', '1', '1', 2]

? ? ? ? """

? ? ? ? pass

?

? ? def sort(self, key=None, reverse=False): # real signature unknown; restored from __doc__

? ? ? ? """ L.sort(key=None, reverse=False) -> None -- stable sort *IN PLACE*?

? ? ? ? 排序,不能同時對字符串和數值排序

? ? ? ? >>> print(a)

? ? ? ? [1, 3, '1', '1', '1', 2]

? ? ? ? >>> a.sort()

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#83>", line 1, in <module>

? ? ? ? ? ? a.sort()

? ? ? ? TypeError: unorderable types: str() < int()

? ? ? ? >>> a.sort()

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#84>", line 1, in <module>

? ? ? ? ? ? a.sort()

? ? ? ? TypeError: unorderable types: str() < int()

? ? ? ? >>> b=[1,2,3,4,5,6,99,10,89]

? ? ? ? >>> b.sort()

? ? ? ? >>> print(b)

? ? ? ? [1, 2, 3, 4, 5, 6, 10, 89, 99]

? ? ? ? >>> c=['winter','winter2','eirc']

? ? ? ? >>> c.sort()

? ? ? ? >>> print(c)

? ? ? ? ['eirc', 'winter', 'winter2']

? ? ? ? >>> d=c.extend([14,3,5,1])

? ? ? ? >>> print(d)

? ? ? ? None

? ? ? ? >>> print(c)

? ? ? ? ['eirc', 'winter', 'winter2', 14, 3, 5, 1]

? ? ? ? >>> c.sort()

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#94>", line 1, in <module>

? ? ? ? ? ? c.sort()

? ? ? ? TypeError: unorderable types: int() < str()

? ? ? ? >>>?

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def __add__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self+value.

? ? ? ? >>> a=[1,2,3]

? ? ? ? >>> a.__add__([1,2])

? ? ? ? [1, 2, 3, 1, 2]

? ? ? ? ?

? ? ? ? ?"""

? ? ? ? pass

?

? ? def __contains__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return key in self.?

? ? ? ? >>> a.__contains__(5)

? ? ? ? False

? ? ? ? """

? ? ? ? pass

?

? ? def __delitem__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Delete self[key].?

? ? ? ? 刪除指定的數值

? ? ? ? """

? ? ? ? pass

?

? ? def __eq__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self==value. """

? ? ? ? pass

?

? ? def __getattribute__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return getattr(self, name). """

? ? ? ? pass

?

? ? def __getitem__(self, y): # real signature unknown; restored from __doc__

? ? ? ? """ x.__getitem__(y) <==> x[y] """

? ? ? ? pass

?

? ? def __ge__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self>=value. """

? ? ? ? pass

?

? ? def __gt__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self>value. """

? ? ? ? pass

?

? ? def __iadd__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Implement self+=value. """

? ? ? ? pass

?

? ? def __imul__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Implement self*=value. """

? ? ? ? pass

?

? ? def __init__(self, seq=()): # known special case of list.__init__

? ? ? ? """

? ? ? ? list() -> new empty list

? ? ? ? list(iterable) -> new list initialized from iterable's items

? ? ? ? # (copied from class doc)

? ? ? ? """

? ? ? ? pass

?

? ? def __iter__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Implement iter(self). """

? ? ? ? pass

?

? ? def __len__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return len(self). """

? ? ? ? pass

?

? ? def __le__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self<=value. """

? ? ? ? pass

?

? ? def __lt__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self<value. """

? ? ? ? pass

?

? ? def __mul__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self*value.n """

? ? ? ? pass

?

? ? @staticmethod # known case of __new__

? ? def __new__(*args, **kwargs): # real signature unknown

? ? ? ? """ Create and return a new object.? See help(type) for accurate signature. """

? ? ? ? pass

?

? ? def __ne__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self!=value. """

? ? ? ? pass

?

? ? def __repr__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return repr(self). """

? ? ? ? pass

?

? ? def __reversed__(self): # real signature unknown; restored from __doc__

? ? ? ? """ L.__reversed__() -- return a reverse iterator over the list """

? ? ? ? pass

?

? ? def __rmul__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self*value. """

? ? ? ? pass

?

? ? def __setitem__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Set self[key] to value. """

? ? ? ? pass

?

? ? def __sizeof__(self): # real signature unknown; restored from __doc__

? ? ? ? """ L.__sizeof__() -- size of L in memory, in bytes """

? ? ? ? pass

?

? ? __hash__ = None?

? ??

? ?class list

? ?

? 五、元組tuple的命令匯總?

??

? ?

? ?

? ??

? ? class list(object):

? ? """

? ? list() -> new empty list

? ? list(iterable) -> new list initialized from iterable's items

? ? """

? ? def append(self, p_object): # real signature unknown; restored from __doc__

? ? ? ? """ L.append(object) -> None -- append object to end?

? ? ? ? 添加最后。

? ? ? ? >>> a=[1,2,]

? ? ? ? >>> print(a)

? ? ? ? [1, 2]

? ? ? ? >>> a.append('winter')

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 'winter']

? ? ? ? >>> a.append('winter2',)

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 'winter', 'winter2']

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def clear(self): # real signature unknown; restored from __doc__

? ? ? ? """ L.clear() -> None -- remove all items from L?

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 'winter', 'winter2']

? ? ? ? >>> a.clear()

? ? ? ? >>> print(a)

? ? ? ? []

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def copy(self): # real signature unknown; restored from __doc__

? ? ? ? """ L.copy() -> list -- a shallow copy of L

? ? ? ? >>> a=['winter',1,2,0,]

? ? ? ? >>> a.copy()

? ? ? ? ['winter', 1, 2, 0]

? ? ? ? >>> print()

? ? ? ??

? ? ? ? >>> print(a)

? ? ? ? ['winter', 1, 2, 0]

? ? ? ? >>> b=['winter',]

? ? ? ? >>> a.copy(b)

? ? ? ? >>> b=a.copy()

? ? ? ? >>> print(b)

? ? ? ? ['winter', 1, 2, 0]

? ? ? ? ?

? ? ? ? ?"""

? ? ? ? return []

?

? ? def count(self, value): # real signature unknown; restored from __doc__

? ? ? ? """ L.count(value) -> integer -- return number of occurrences of value

? ? ? ? >>> print(b)

? ? ? ? ['winter', 1, 2, 0]

? ? ? ? >>> b.count(1)

? ? ? ? >>> b.count(3)

? ? ? ? >>> b.count('winter')

? ? ? ? ?

? ? ? ? ?"""

? ? ? ? return 0

?

? ? def extend(self, iterable): # real signature unknown; restored from __doc__

? ? ? ? """ L.extend(iterable) -> None -- extend list by appending elements from the iterable?

? ? ? ? >>> a=[1,2,3]

? ? ? ? >>> a.extend('1111')

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 3, '1', '1', '1', '1']

? ? ? ? >>> a.extend([2,2])

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 3, '1', '1', '1', '1', 2, 2]

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def index(self, value, start=None, stop=None): # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? L.index(value, [start, [stop]]) -> integer -- return first index of value.

? ? ? ? Raises ValueError if the value is not present.

? ? ? ? """

? ? ? ? return 0

?

? ? def insert(self, index, p_object): # real signature unknown; restored from __doc__

? ? ? ? """ L.insert(index, object) -- insert object before index?

? ? ? ? 插入到制定的位置

? ? ? ? """

? ? ? ? pass

?

? ? def pop(self, index=None): # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? L.pop([index]) -> item -- remove and return item at index (default last).

? ? ? ? Raises IndexError if list is empty or index is out of range.

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 3, '1', '1', '1', '1']

? ? ? ? >>> a.extend([2,2])

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 3, '1', '1', '1', '1', 2, 2]

? ? ? ? >>> b=a.pop()

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 3, '1', '1', '1', '1', 2]

? ? ? ? >>> print(b)

? ? ? ? >>> c=a.pop(1)

? ? ? ? >>> print(a)

? ? ? ? [1, 3, '1', '1', '1', '1', 2]

? ? ? ? >>> print(c)

? ? ? ??

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def remove(self, value): # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? L.remove(value) -> None -- remove first occurrence of value.

? ? ? ? Raises ValueError if the value is not present.

? ? ? ??

? ? ? ? >>> print(a)

? ? ? ? [1, 3, '1', '1', '1', '1', 2]

? ? ? ? >>> b=a.remove('1')

? ? ? ? >>> print(b)

? ? ? ? None

? ? ? ? >>> print(a)

? ? ? ? [1, 3, '1', '1', '1', 2]

? ? ? ? >>> a.insert('1',1)

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#70>", line 1, in <module>

? ? ? ? ? ? a.insert('1',1)

? ? ? ? TypeError: 'str' object cannot be interpreted as an integer

? ? ? ? >>>? a.insert(1,'1')

? ? ? ? ?

? ? ? ? SyntaxError: unexpected indent

? ? ? ? >>> a.insert(1,'1')

? ? ? ? >>> print(a)

? ? ? ? [1, '1', 3, '1', '1', '1', 2]

? ? ? ? >>> a.remove('1')

? ? ? ? >>> print(a)

? ? ? ? [1, 3, '1', '1', '1', 2]

? ? ? ? >>> a.remove(99)

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#76>", line 1, in <module>

? ? ? ? ? ? a.remove(99)

? ? ? ? ValueError: list.remove(x): x not in list

? ? ? ? """

? ? ? ? pass

?

? ? def reverse(self): # real signature unknown; restored from __doc__

? ? ? ? """ L.reverse() -- reverse *IN PLACE*?

? ? ? ? >>> print(a)

? ? ? ? [2, '1', '1', '1', 3, 1]

? ? ? ? >>> a.reverse()

? ? ? ? >>> print(a)

? ? ? ? [1, 3, '1', '1', '1', 2]

? ? ? ? """

? ? ? ? pass

?

? ? def sort(self, key=None, reverse=False): # real signature unknown; restored from __doc__

? ? ? ? """ L.sort(key=None, reverse=False) -> None -- stable sort *IN PLACE*?

? ? ? ? 排序,不能同時對字符串和數值排序

? ? ? ? >>> print(a)

? ? ? ? [1, 3, '1', '1', '1', 2]

? ? ? ? >>> a.sort()

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#83>", line 1, in <module>

? ? ? ? ? ? a.sort()

? ? ? ? TypeError: unorderable types: str() < int()

? ? ? ? >>> a.sort()

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#84>", line 1, in <module>

? ? ? ? ? ? a.sort()

? ? ? ? TypeError: unorderable types: str() < int()

? ? ? ? >>> b=[1,2,3,4,5,6,99,10,89]

? ? ? ? >>> b.sort()

? ? ? ? >>> print(b)

? ? ? ? [1, 2, 3, 4, 5, 6, 10, 89, 99]

? ? ? ? >>> c=['winter','winter2','eirc']

? ? ? ? >>> c.sort()

? ? ? ? >>> print(c)

? ? ? ? ['eirc', 'winter', 'winter2']

? ? ? ? >>> d=c.extend([14,3,5,1])

? ? ? ? >>> print(d)

? ? ? ? None

? ? ? ? >>> print(c)

? ? ? ? ['eirc', 'winter', 'winter2', 14, 3, 5, 1]

? ? ? ? >>> c.sort()

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#94>", line 1, in <module>

? ? ? ? ? ? c.sort()

? ? ? ? TypeError: unorderable types: int() < str()

? ? ? ? >>>?

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def __add__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self+value.

? ? ? ? >>> a=[1,2,3]

? ? ? ? >>> a.__add__([1,2])

? ? ? ? [1, 2, 3, 1, 2]

? ? ? ? ?

? ? ? ? ?"""

? ? ? ? pass

?

? ? def __contains__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return key in self.?

? ? ? ? >>> a.__contains__(5)

? ? ? ? False

? ? ? ? """

? ? ? ? pass

?

? ? def __delitem__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Delete self[key].?

? ? ? ? 刪除指定的數值

? ? ? ? """

? ? ? ? pass

?

? ? def __eq__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self==value. """

? ? ? ? pass

?

? ? def __getattribute__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return getattr(self, name). """

? ? ? ? pass

?

? ? def __getitem__(self, y): # real signature unknown; restored from __doc__

? ? ? ? """ x.__getitem__(y) <==> x[y] """

? ? ? ? pass

?

? ? def __ge__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self>=value. """

? ? ? ? pass

?

? ? def __gt__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self>value. """

? ? ? ? pass

?

? ? def __iadd__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Implement self+=value. """

? ? ? ? pass

?

? ? def __imul__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Implement self*=value. """

? ? ? ? pass

?

? ? def __init__(self, seq=()): # known special case of list.__init__

? ? ? ? """

? ? ? ? list() -> new empty list

? ? ? ? list(iterable) -> new list initialized from iterable's items

? ? ? ? # (copied from class doc)

? ? ? ? """

? ? ? ? pass

?

? ? def __iter__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Implement iter(self). """

? ? ? ? pass

?

? ? def __len__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return len(self). """

? ? ? ? pass

?

? ? def __le__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self<=value. """

? ? ? ? pass

?

? ? def __lt__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self<value. """

? ? ? ? pass

?

? ? def __mul__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self*value.n """

? ? ? ? pass

?

? ? @staticmethod # known case of __new__

? ? def __new__(*args, **kwargs): # real signature unknown

? ? ? ? """ Create and return a new object.? See help(type) for accurate signature. """

? ? ? ? pass

?

? ? def __ne__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self!=value. """

? ? ? ? pass

?

? ? def __repr__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return repr(self). """

? ? ? ? pass

?

? ? def __reversed__(self): # real signature unknown; restored from __doc__

? ? ? ? """ L.__reversed__() -- return a reverse iterator over the list """

? ? ? ? pass

?

? ? def __rmul__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self*value. """

? ? ? ? pass

?

? ? def __setitem__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Set self[key] to value. """

? ? ? ? pass

?

? ? def __sizeof__(self): # real signature unknown; restored from __doc__

? ? ? ? """ L.__sizeof__() -- size of L in memory, in bytes """

? ? ? ? pass

?

? ? __hash__ = None?

? ??

? ?class tuple

? ?

? 六、字典dict的命令匯總 字典為無序的。?

? 創建字典:?

? dic1={‘winter':1,'winter2':2}??

??

? ?

? ?

? ??

? ? class dict(object):

? ? """

? ? dict() -> new empty dictionary

? ? dict(mapping) -> new dictionary initialized from a mapping object's

? ? ? ? (key, value) pairs

? ? dict(iterable) -> new dictionary initialized as if via:

? ? ? ? d = {}

? ? ? ? for k, v in iterable:

? ? ? ? ? ? d[k] = v

? ? dict(**kwargs) -> new dictionary initialized with the name=value pairs

? ? ? ? in the keyword argument list.? For example:? dict(one=1, two=2)

? ? """

? ? def clear(self): # real signature unknown; restored from __doc__

? ? ? ? """ D.clear() -> None.? Remove all items from D. """

? ? ? ? pass

?

? ? def copy(self): # real signature unknown; restored from __doc__

? ? ? ? """ D.copy() -> a shallow copy of D?

? ? ? ? 無法理解有什么作用

? ? ? ? >>> a={'winter':1,'winter2':2}

? ? ? ? >>> b=a

? ? ? ? >>> print(b)

? ? ? ? {'winter': 1, 'winter2': 2}

? ? ? ? >>> b=a.copy()

? ? ? ? >>> print(b)

? ? ? ? {'winter': 1, 'winter2': 2}

? ? ? ? """

? ? ? ? pass

?

? ? @staticmethod # known case

? ? def fromkeys(*args, **kwargs): # real signature unknown

? ? ? ? """ Returns a new dict with keys from iterable and values equal to value.?

? ? ? ? 獲取對應的字典里面的keys。

? ? ? ? >>> c={'111': 1, '222': 2}

? ? ? ? >>> c.fromkeys(a)

? ? ? ? {'winter': None, 'winter2': None}

? ? ? ? >>> print(c)

? ? ? ? {'111': 1, '222': 2}

? ? ? ? >>> print(a)

? ? ? ? {'winter': 1, 'winter2': 2}

? ? ? ? >>>?

? ? ? ? >>> d={'www':1}

? ? ? ? >>> d.fromkeys(c)

? ? ? ? {'111': None, '222': None}

? ? ? ? """

? ? ? ? pass

?

? ? def get(self, k, d=None): # real signature unknown; restored from __doc__

? ? ? ? """ D.get(k[,d]) -> D[k] if k in D, else d.? d defaults to None.?

? ? ? ? >>> print(c)

? ? ? ? {'111': 1, '222': 2}

? ? ? ? >>> c.get('111')

? ? ? ? >>> c.get('222')

? ? ? ? >>> c.get('winter')

? ? ? ? >>> c.get('winter','nothing')

? ? ? ? 'nothing'

? ? ? ? """

? ? ? ? pass

?

? ? def items(self): # real signature unknown; restored from __doc__

? ? ? ? """ D.items() -> a set-like object providing a view on D's items?

? ? ? ? >>> c.items()

? ? ? ? dict_items([('111', 1), ('222', 2)])

? ? ? ? >>> e=c.items()

? ? ? ? >>> print(e)

? ? ? ? dict_items([('111', 1), ('222', 2)])

? ? ? ? >>> e[0]

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#141>", line 1, in <module>

? ? ? ? ? ? e[0]

? ? ? ? TypeError: 'dict_items' object does not support indexing

? ? ? ? >>> type(e)

? ? ? ? <class 'dict_items'>

? ? ? ? """

? ? ? ? pass

?

? ? def keys(self): # real signature unknown; restored from __doc__

? ? ? ? """ D.keys() -> a set-like object providing a view on D's keys

? ? ? ? 獲取所有的keys的值

? ? ? ? ?>>> c=a.keys()

? ? ? ? >>> print(c)

? ? ? ? dict_keys(['winter', 'winter2'])

? ? ? ? >>> type(c)

? ? ? ? <class 'dict_keys'>

? ? ? ? ?"""

? ? ? ? pass

?

? ? def pop(self, k, d=None): # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? D.pop(k[,d]) -> v, remove specified key and return the corresponding value.

? ? ? ? If key is not found, d is returned if given, otherwise KeyError is raised

? ? ? ? >>> a

? ? ? ? {'winter': 1, 'winter2': 2}

? ? ? ? >>> c=a.pop('winter')

? ? ? ? >>> print(c)

? ? ? ? >>> print(a)

? ? ? ? {'winter2': 2}

? ? ? ? """

? ? ? ? pass

?

? ? def popitem(self): # real signature unknown; restored from __doc__

? ? ? ? """

? ? ? ? D.popitem() -> (k, v), remove and return some (key, value) pair as a

? ? ? ? 2-tuple; but raise KeyError if D is empty.

? ? ? ? 彈出,注意popitem是從前向后彈出,而其他的pop是從后向前彈。

? ? ? ? >>> a={'winter': 1, 'winter2': 2}

? ? ? ? >>> c=a.popitem()

? ? ? ? >>> print(c)

? ? ? ? ('winter', 1)

? ? ? ? >>> print(a)

? ? ? ? {'winter2': 2}

? ? ? ? >>> a=[1,2,3,4]

? ? ? ? >>> c=a.pop()

? ? ? ? >>> print(a)

? ? ? ? [1, 2, 3]

? ? ? ? >>> print(c)

? ? ? ? """

? ? ? ? pass

?

? ? def setdefault(self, k, d=None): # real signature unknown; restored from __doc__

? ? ? ? """ D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D?

? ? ? ? 設置key的值,如果沒有這個key就直接添加

? ? ? ? >>> a={'winter':1,'winter2':2}

? ? ? ? >>> a.setdefault()

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#1>", line 1, in <module>

? ? ? ? ? ? a.setdefault()

? ? ? ? TypeError: setdefault expected at least 1 arguments, got 0

? ? ? ? >>> a.setdefault('winter')

? ? ? ? >>> print(a)

? ? ? ? {'winter': 1, 'winter2': 2}

? ? ? ? >>> a.setdault('winter3')

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#4>", line 1, in <module>

? ? ? ? ? ? a.setdault('winter3')

? ? ? ? AttributeError: 'dict' object has no attribute 'setdault'

? ? ? ? >>> a.setdefault('winter')

? ? ? ? >>> print(a)

? ? ? ? {'winter': 1, 'winter2': 2}

? ? ? ? >>> a.setdefault('winter3')

? ? ? ? >>> print(a)

? ? ? ? {'winter': 1, 'winter2': 2, 'winter3': None}

? ? ? ? >>>?

? ? ? ? >>>?

? ? ? ? >>>?

? ? ? ? >>> a.setdefault('winter4',4)

? ? ? ? >>> print(a)

? ? ? ? {'winter': 1, 'winter2': 2, 'winter3': None, 'winter4': 4}

? ? ? ? """

? ? ? ? pass

?

? ? def update(self, E=None, **F): # known special case of dict.update

? ? ? ? """

? ? ? ? D.update([E, ]**F) -> None.? Update D from dict/iterable E and F.

? ? ? ? If E is present and has a .keys() method, then does:? for k in E: D[k] = E[k]

? ? ? ? If E is present and lacks a .keys() method, then does:? for k, v in E: D[k] = v

? ? ? ? In either case, this is followed by: for k in F:? D[k] = F[k]

? ? ? ? >>> print(a)

? ? ? ? {'winter': 1, 'winter2': 2, 'winter3': None, 'winter4': 4}

? ? ? ? >>> a

? ? ? ? {'winter': 1, 'winter2': 2, 'winter3': None, 'winter4': 4}

? ? ? ? >>> b={'winter':111}

? ? ? ? >>> b.update(a)

? ? ? ? >>> b

? ? ? ? {'winter': 1, 'winter2': 2, 'winter3': None, 'winter4': 4}

? ? ? ? >>> c={'winter10':10}

? ? ? ? >>> c.update(b)

? ? ? ? >>> print(c)

? ? ? ? {'winter': 1, 'winter2': 2, 'winter3': None, 'winter4': 4, 'winter10': 10}

? ? ? ? >>> c.update(a,b)

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#21>", line 1, in <module>

? ? ? ? ? ? c.update(a,b)

? ? ? ? TypeError: update expected at most 1 arguments, got 2

? ? ? ? >>> c.update(a,**b)

? ? ? ? >>> print(c)

? ? ? ? {'winter2': 2, 'winter3': None, 'winter4': 4, 'winter10': 10, 'winter': 1}

? ? ? ? >>> print(b)

? ? ? ? {'winter': 1, 'winter2': 2, 'winter3': None, 'winter4': 4}

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def values(self): # real signature unknown; restored from __doc__

? ? ? ? """ D.values() -> an object providing a view on D's values

? ? ? ? ?>>> print(b)

? ? ? ? {'winter': 1, 'winter2': 2, 'winter3': None, 'winter4': 4}

? ? ? ? >>> e=b.values()

? ? ? ? >>> print(e)

? ? ? ? dict_values([1, 2, None, 4])

? ? ? ? ?"""

? ? ? ? pass

?

? ? def __contains__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ True if D has a key k, else False. """

? ? ? ? pass

?

? ? def __delitem__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Delete self[key]. """

? ? ? ? pass

?

? ? def __eq__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self==value. """

? ? ? ? pass

?

? ? def __getattribute__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return getattr(self, name). """

? ? ? ? pass

?

? ? def __getitem__(self, y): # real signature unknown; restored from __doc__

? ? ? ? """ x.__getitem__(y) <==> x[y] """

? ? ? ? pass

?

? ? def __ge__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self>=value. """

? ? ? ? pass

?

? ? def __gt__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self>value. """

? ? ? ? pass

?

? ? def __init__(self, seq=None, **kwargs): # known special case of dict.__init__

? ? ? ? """

? ? ? ? dict() -> new empty dictionary

? ? ? ? dict(mapping) -> new dictionary initialized from a mapping object's

? ? ? ? ? ? (key, value) pairs

? ? ? ? dict(iterable) -> new dictionary initialized as if via:

? ? ? ? ? ? d = {}

? ? ? ? ? ? for k, v in iterable:

? ? ? ? ? ? ? ? d[k] = v

? ? ? ? dict(**kwargs) -> new dictionary initialized with the name=value pairs

? ? ? ? ? ? in the keyword argument list.? For example:? dict(one=1, two=2)

? ? ? ? # (copied from class doc)

? ? ? ? """

? ? ? ? pass

?

? ? def __iter__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Implement iter(self). """

? ? ? ? pass

?

? ? def __len__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return len(self). """

? ? ? ? pass

?

? ? def __le__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self<=value. """

? ? ? ? pass

?

? ? def __lt__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self<value. """

? ? ? ? pass

?

? ? @staticmethod # known case of __new__

? ? def __new__(*args, **kwargs): # real signature unknown

? ? ? ? """ Create and return a new object.? See help(type) for accurate signature. """

? ? ? ? pass

?

? ? def __ne__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return self!=value. """

? ? ? ? pass

?

? ? def __repr__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Return repr(self). """

? ? ? ? pass

?

? ? def __setitem__(self, *args, **kwargs): # real signature unknown

? ? ? ? """ Set self[key] to value. """

? ? ? ? pass

?

? ? def __sizeof__(self): # real signature unknown; restored from __doc__

? ? ? ? """ D.__sizeof__() -> size of D in memory, in bytes """

? ? ? ? pass

?

? ? __hash__ = None?

? ??

? ?class dict

? ?

? ??

? 七、集合set的命令匯總 set內無重復數據。?

??

? ?

? ?

? ??

? ? #!/usr/bin/env python

# -*- coding:utf-8 -*-

?

?

?

class set(object):

? ? """

? ? set() -> new empty set object

? ? set(iterable) -> new set object

?

? ? Build an unordered collection of unique elements.

? ? """

?

? ? def add(self, *args, **kwargs):? # real signature unknown

? ? ? ? """

? ? ? ? Add an element to a set.

?

? ? ? ? This has no effect if the element is already present.

? ? ? ? """

? ? ? ? pass

?

? ? def clear(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Remove all elements from this set. """

? ? ? ? pass

?

? ? def copy(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return a shallow copy of a set. """

? ? ? ? pass

?

? ? def difference(self, *args, **kwargs):? # real signature unknown

? ? ? ? """

? ? ? ? Return the difference of two or more sets as a new set.

?

? ? ? ? (i.e. all elements that are in this set but not the others.)

? ? ? ? >>> a=set(['winter','winter2','winter3','winter'])

? ? ? ? >>> print(a)

? ? ? ? {'winter2', 'winter3', 'winter'}

? ? ? ? >>> b=set(['winter','winter2','winter3','winter4'])

? ? ? ? >>> c=a.difference(b)

? ? ? ? >>> print(c)

? ? ? ? set()

? ? ? ? >>> print(a)

? ? ? ? {'winter2', 'winter3', 'winter'}

? ? ? ? >>> print(b)

? ? ? ? {'winter2', 'winter4', 'winter3', 'winter'}

? ? ? ? >>> c=b.difference(a)

? ? ? ? >>> print(c)

? ? ? ? {'winter4'}

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def difference_update(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Remove all elements of another set from this set.?

? ? ? ? 刪除當前set中在所有包含在new set里面的元素。

? ? ? ? >>> c=b.difference_update(a)

? ? ? ? >>> print(c)

? ? ? ? None

? ? ? ? >>> print(b)

? ? ? ? {'winter4'}

? ? ? ? >>> print(a)

? ? ? ? {'winter2', 'winter3', 'winter'}

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def discard(self, *args, **kwargs):? # real signature unknown

? ? ? ? """

? ? ? ? Remove an element from a set if it is a member.

?

? ? ? ? If the element is not a member, do nothing.

? ? ? ? 移除元素

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def intersection(self, *args, **kwargs):? # real signature unknown

? ? ? ? """

? ? ? ? Return the intersection of two sets as a new set.

?

? ? ? ? (i.e. all elements that are in both sets.)

? ? ? ? 取交集

? ? ? ? >>> c=a.intersection(b)

? ? ? ? >>> print(a)

? ? ? ? {'winter2', 'winter3', 'winter'}

? ? ? ? >>> print(b)

? ? ? ? {'winter2', 'winter4', 'winter3', 'winter'}

? ? ? ? >>> print(c)

? ? ? ? {'winter2', 'winter3', 'winter'}

? ? ? ? """

? ? ? ? pass

?

? ? def intersection_update(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Update a set with the intersection of itself and another.

? ? ? ? ?與different_update的結構類似,修改原值。

? ? ? ? ?"""

? ? ? ? pass

?

? ? def isdisjoint(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return True if two sets have a null intersection.?

? ? ? ? 如果沒有交集返回True

? ? ? ? """

? ? ? ? pass

?

? ? def issubset(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Report whether another set contains this set.?

? ? ? ? 是否子集

? ? ? ? """

? ? ? ? pass

?

? ? def issuperset(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Report whether this set contains another set.?

? ? ? ? 是否父集

? ? ? ? """

? ? ? ? pass

?

? ? def pop(self, *args, **kwargs):? # real signature unknown

? ? ? ? """

? ? ? ? Remove and return an arbitrary set element.

? ? ? ? Raises KeyError if the set is empty.

? ? ? ? >>> b

? ? ? ? {'winter2', 'winter4', 'winter3', 'winter'}

? ? ? ? >>> e=b.pop()

? ? ? ? >>> e

? ? ? ? 'winter2'

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def remove(self, *args, **kwargs):? # real signature unknown

? ? ? ? """

? ? ? ? Remove an element from a set; it must be a member.

?

? ? ? ? If the element is not a member, raise a KeyError.

? ? ? ? >>> b.remove()

? ? ? ? Traceback (most recent call last):

? ? ? ? ? File "<pyshell#35>", line 1, in <module>

? ? ? ? ? ? b.remove()

? ? ? ? TypeError: remove() takes exactly one argument (0 given)

? ? ? ? >>> b

? ? ? ? {'winter3', 'winter'}

? ? ? ? >>> b.remove('winter')

? ? ? ? >>> b

? ? ? ? {'winter3'}

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def symmetric_difference(self, *args, **kwargs):? # real signature unknown

? ? ? ? """

? ? ? ? Return the symmetric difference of two sets as a new set.

?

? ? ? ? (i.e. all elements that are in exactly one of the sets.)

? ? ? ? 求2個集合里面的相互之間差集和,帶返回

? ? ? ? >>> s1=set([1,2,3])

? ? ? ? >>> s2=set([2,3,4])

? ? ? ? >>> c1=s1.symmetric_difference(s2)

? ? ? ? >>> c1

? ? ? ? {1, 4}

? ? ? ? >>> c2=s2.symmetric_difference(s1)

? ? ? ? >>> c2

? ? ? ? {1, 4}

?

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def symmetric_difference_update(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Update a set with the symmetric difference of itself and another.

? ? ? ? ?求差集,不帶返回

? ? ? ? ?"""

? ? ? ? pass

?

? ? def union(self, *args, **kwargs):? # real signature unknown

? ? ? ? """

? ? ? ? Return the union of sets as a new set.

?

? ? ? ? (i.e. all elements that are in either set.)

? ? ? ? 并集

? ? ? ? """

? ? ? ? pass

?

? ? def update(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Update a set with the union of itself and others.

? ? ? ? 特別注意,and和update的不同。

? ? ? ? >>> b

? ? ? ? {'winter3'}

? ? ? ? >>> b

? ? ? ? {'winter3'}

? ? ? ? >>> b.update('winter')

? ? ? ? >>> b

? ? ? ? {'t', 'r', 'w', 'winter3', 'i', 'e', 'n'}

? ? ? ? >>> b.add('winter')

? ? ? ? >>> b

? ? ? ? {'t', 'r', 'winter', 'w', 'winter3', 'i', 'e', 'n'}

? ? ? ? >>>?

? ? ? ? ?"""

? ? ? ? pass

?

? ? def __and__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self&value.

? ? ? ? ?不知道用途,

? ? ? ? ?補充關于and 和 & 運算

? ? ? ? ?a,b分別是整數1和2,以二進制表示分別為:01,10。

? ? ? ? &運算結果的二進制為:00,即十進制的 0(按位邏輯運算)。再如 :2&3,二進制表示為 10&11,所以結果是 10,即十進制的 2。

? ? ? ? 1 是真,2是真(整數0是否),所以 1 and 2 是真, 0 and 2 是否。

? ? ? ? ?

? ? ? ? >>> a={11111}

? ? ? ? >>> type(a)

? ? ? ? <class 'set'>

? ? ? ? >>> b={111111}

? ? ? ? >>> c=a.__and__(b)

? ? ? ? >>> print(c)

? ? ? ? set()

?

? ? ? ? ?"""

? ? ? ? pass

?

? ? def __contains__(self, y):? # real signature unknown; restored from __doc__

? ? ? ? """ x.__contains__(y) <==> y in x.

? ? ? ? 判斷條件不明,慎用慎用。

? ? ? ??

? ? ? ? ?>>> a.__contains__(b)

? ? ? ? False

? ? ? ? >>> b.__contains__(a)

? ? ? ? False

? ? ? ? >>> a

? ? ? ? {11111}

? ? ? ? >>> b

? ? ? ? {111111}

? ? ? ? >>> c={1,2}

? ? ? ? >>> type(c)

? ? ? ? <class 'set'>

? ? ? ? >>> d={1}

? ? ? ? >>> c.__c

? ? ? ? c.__class__(? ? c.__contains__(

? ? ? ? >>> c.__contains__(d)

? ? ? ? False

? ? ? ? >>> d.__contains__(c)

? ? ? ? False

?

? ? ? ? ?

? ? ? ? ?"""

? ? ? ? pass

?

? ? def __eq__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self==value.

? ? ? ? 判斷是否相等

? ? ? ? ?>>> e={1}

? ? ? ? >>> e

? ? ? ? {1}

? ? ? ? >>> d

? ? ? ? {1}

? ? ? ? >>> e.__eq__(d)

? ? ? ? True

?

? ? ? ? ?"""

? ? ? ? pass

?

? ? def __getattribute__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return getattr(self, name). """

? ? ? ? pass

?

? ? def __ge__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self>=value. """

? ? ? ? pass

?

? ? def __gt__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self>value. """

? ? ? ? pass

?

? ? def __iand__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self&=value. """

? ? ? ? pass

?

? ? def __init__(self, seq=()):? # known special case of set.__init__

? ? ? ? """

? ? ? ? set() -> new empty set object

? ? ? ? set(iterable) -> new set object

?

? ? ? ? Build an unordered collection of unique elements.

? ? ? ? # (copied from class doc)

? ? ? ? """

? ? ? ? pass

?

? ? def __ior__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self|=value. """

? ? ? ? pass

?

? ? def __isub__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self-=value. """

? ? ? ? pass

?

? ? def __iter__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Implement iter(self). """

? ? ? ? pass

?

? ? def __ixor__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self^=value. """

? ? ? ? pass

?

? ? def __len__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return len(self).

? ? ? ? ?返回數據長度

? ? ? ? ?"""

? ? ? ? pass

?

? ? def __le__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self<=value. """

? ? ? ? pass

?

? ? def __lt__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self<value. """

? ? ? ? pass

?

? ? @staticmethod? # known case of __new__

? ? def __new__(*args, **kwargs):? # real signature unknown

? ? ? ? """ Create and return a new object.? See help(type) for accurate signature. """

? ? ? ? pass

?

? ? def __ne__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self!=value.

? ? ? ? ?不等于

? ? ? ? ?"""

? ? ? ? pass

?

? ? def __or__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self|value.

? ? ? ? ?| 或是位運算

? ? ? ? ?"""

? ? ? ? pass

?

? ? def __rand__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value&self. """

? ? ? ? pass

?

? ? def __reduce__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return state information for pickling.?

? ? ? ? 測試在報錯,不知道原因

? ? ? ? >>> a.__reduce_()

? ? ? ? ? ? Traceback (most recent call last):

? ? ? ? ? ? ? File "<stdin>", line 1, in <module>

? ? ? ? ? ? AttributeError: 'set' object has no attribute '__reduce_'

? ??

? ? ? ??

? ? ? ? """

? ? ? ? pass

?

? ? def __repr__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return repr(self). """

? ? ? ? pass

?

? ? def __ror__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value|self. """

? ? ? ? pass

?

? ? def __rsub__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value-self. """

? ? ? ? pass

?

? ? def __rxor__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return value^self. """

? ? ? ? pass

?

? ? def __sizeof__(self):? # real signature unknown; restored from __doc__

? ? ? ? """ S.__sizeof__() -> size of S in memory, in bytes?

? ? ? ? 返回S在內存占用的大小

? ? ? ? """

? ? ? ? pass

?

? ? def __sub__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self-value. """

? ? ? ? pass

?

? ? def __xor__(self, *args, **kwargs):? # real signature unknown

? ? ? ? """ Return self^value. """

? ? ? ? pass

?

? ? __hash__ = None?

? ??

? ?class set

? ?

? ??

? ??

? 其他?

??

? ?1、for循環

? ?

??

? ?用戶按照順序循環可迭代對象中的內容,

? ?

??

? ?PS:break、continue

? ?

? ?

? ?

? ??

? ??

? ? ?

? ? ?li=[11,22,33,44,55,66]

for item in li:

? ? print (item)

?

#-------------結果----------------

11

22

33

44

55

66?

? ? ?

? ? for

? ??

? ? ?

? ?

? ? 2、range

? ??

? ?

? ? 指定范圍,生成指定的數字

? ??

? ?

? ? ?

? ??

? ??

? ??

? ? ?

? ? ?

? ? ??

? ? ? a=[]

b=[]

c=[]

d=[]

for i in range(1,10):

? ? a.append(i)

?

for i in range(1,10,2):

? ? b.append(i)

?

for i in range(30,0,-1):

? ? c.append(i)

?

for i in range(60,10,-2):

? ? d.append(i)

?

print(a)

print(b)

print(c)

print(d)

?

#----------------結果-----------------------------------

[1, 2, 3, 4, 5, 6, 7, 8, 9]

[1, 3, 5, 7, 9]

[30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]

[60, 58, 56, 54, 52, 50, 48, 46, 44, 42, 40, 38, 36, 34, 32, 30, 28, 26, 24, 22, 20, 18, 16, 14, 12]?

? ? ??

? ? ?range

? ? ?

? ? ??

? ??

? ?

??

? ?3、enumrate

? ?

??

? ?為可迭代的對象添加序號

? ?

? ?

? ?

? ??

? ??

? ? ?

? ? ?a=[]

b=[]

c=[]

d=[]

for k,v in enumerate(range(1,10),1):

? ? a.append(k)

? ? b.append(v)

?

?

for k,v in enumerate(range(30,0,-1),10):

? ? c.append(k)

? ? d.append(v)

?

print(a)

print(b)

print(c)

print(d)

?

li=[11,22,33,44]

for k,v in enumerate(li,20):

? ? print(k,v)

for k,v in enumerate(li,-5):

? ? print(k,v)

?

#-----------------結果----------------------------------

[1, 2, 3, 4, 5, 6, 7, 8, 9]

[1, 2, 3, 4, 5, 6, 7, 8, 9]

[10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]

[30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]

20 11

21 22

22 33

23 44

-5 11

-4 22

-3 33

-2 44?

? ? ?

? ? enumrate

? ??

? ? ?

? ?

? 練習題?

? ??

??

? ?二、查找

? ?

??

? ?查找列表中元素,移除每個元素的空格,并查找以 a或A開頭 并且以 c 結尾的所有元素。

? ?

??

? ? ? ?li = ["alec", " aric", "Alex", "Tony", "rain"]

? ?

??

? ? ? ?tu = ("alec", " aric", "Alex", "Tony", "rain")?

? ?

??

? ? ? ?dic = {'k1': "alex", 'k2': ' aric',? "k3": "Alex", "k4": "Tony"}

? ?

??

? ??

? ?

??

? ??

? ?

? ?

? ?

? ??

? ??

? ? ?

? ? ?li = ["alec", " aric", "Alex", "Tony", "rain"]

tu = ("alec", " aric", "Alex", "Tony", "rain")

dic = {'k1': "alex", 'k2': ' aric', "k3": "Alex", "k4": "Tony"}

?

li1=[]

li2=[]

dic1={}

li1_onlyac=[]

li2_onlyac=[]

dic1_onlyac={}

?

for i in li:

? ? li1.append(i.strip())

? ? if i.strip().endswith('c') and i.strip().startswith('a'):

? ? ? ? li1_onlyac.append(i.strip())

? ? elif i.strip().endswith('c') and i.strip().startswith('A'):

? ? ? ? li1_onlyac.append(i.strip())

? ? else:

? ? ? ? continue

?

for i in tu:

? ? li2.append(i.strip())

? ? if i.strip().endswith('c') and i.strip().startswith('a'):

? ? ? ? li2_onlyac.append(i.strip())

? ? elif i.strip().endswith('c') and i.strip().startswith('A'):

? ? ? ? li2_onlyac.append(i.strip())

? ? else:

? ? ? ? continue

for i in dic.keys():

? ? dic1[i]=dic[i].strip()

? ? if dic[i].strip().endswith('c') and dic[i].strip().startswith('a'):

? ? ? ? dic1_onlyac[i] = dic[i].strip()

? ? elif dic[i].strip().endswith('c') and dic[i].strip().startswith('A'):

? ? ? ? dic1_onlyac[i] = dic[i].strip()

? ? else:

? ? ? ? continue

print(li1)

print(li2)

print(dic1)

print(li1_onlyac)

print(li2_onlyac)

print(dic1_onlyac)?

? ? ?

? ? 練習代碼

? ??

? ? ?

? ?

??

? ??

? ?

? ??

??

??

?

轉載于:https://www.cnblogs.com/wintershen/p/6755976.html

總結

以上是生活随笔為你收集整理的[转载] python学习笔记2--操作符,数据类型和内置功能的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

狠狠网站 | 亚洲精品视频一 | 久久九九免费视频 | 亚洲国产精品久久久久久 | 国产午夜精品一区二区三区嫩草 | 九九热免费在线视频 | 国产视频一区二区在线播放 | 国产中年夫妇高潮精品视频 | 欧美激情第一页xxx 午夜性福利 | 日韩在线观 | 色综合久久88 | 香蕉视频网址 | 国产三级视频 | 国内精品久久久久久久久久清纯 | 久久人人精 | 91视频下载 | 超碰在97 | 欧美一级免费片 | 亚洲人毛片 | 天天干夜夜擦 | 亚洲黄色一级大片 | 天堂av在线 | 久久超碰在线 | 亚洲成av人片在线观看www | 国产麻豆果冻传媒在线观看 | 久久精品99国产国产 | 亚洲成人在线免费 | 97超碰在线人人 | 夜夜视频资源 | av看片在线观看 | 久久久久久久久久福利 | 黄色三级av | 四虎在线观看精品视频 | 视频一区二区免费 | 免费看的黄网站 | 中文字幕视频观看 | 91麻豆精品国产91久久久无限制版 | 午夜电影久久 | 亚洲国产合集 | 日韩在线免费视频观看 | 日本中文字幕观看 | 日韩精品欧美专区 | 午夜久久久久久久久久影院 | 欧日韩在线| 碰超在线 | 日韩欧美69| 欧美一区中文字幕 | 欧美久久久久久久久 | 天天综合天天综合 | 乱男乱女www7788 | 天天干,天天干 | 91久久国产综合精品女同国语 | 免费看黄色毛片 | 亚洲aⅴ乱码精品成人区 | 免费麻豆视频 | 日韩在线观看你懂得 | 91精品网站| 亚州精品天堂中文字幕 | 久久精品网站视频 | 国内精品久久久久影院优 | 91av视频免费在线观看 | 国产精品一区二区无线 | 精品一区二区在线观看 | 亚洲国产中文字幕在线观看 | 欧美极度另类 | 日本系列中文字幕 | 美女在线免费视频 | 色中文字幕在线观看 | 亚洲精品一区二区三区新线路 | 西西444www| 久久这里精品视频 | 天天操天天添 | 亚洲国产成人精品在线观看 | 97日日碰人人模人人澡分享吧 | 曰本免费av | 天堂av色婷婷一区二区三区 | 精品久久精品久久 | 国产九九九视频 | 在线免费观看不卡av | 亚洲精品中文字幕视频 | 日本中文字幕在线一区 | 天天·日日日干 | 天堂av一区二区 | 夜夜操网 | 在线欧美国产 | 91污污视频在线观看 | 国产在线视频导航 | 中文字幕乱码电影 | 成年人电影免费在线观看 | 国产一级a毛片视频爆浆 | 日本久久久久久久久久 | 午夜久久久久久久久久久 | 久久久久久久久久久福利 | 亚洲视频aaa| 国产日韩欧美网站 | 久久视屏网 | 成人久久毛片 | 亚洲精品视频免费看 | 一区二区三区在线免费观看 | 亚洲干视频在线观看 | 国产亚州精品视频 | av高清免费在线 | www.久久久.cum | 亚洲电影图片小说 | 中文字幕一区二区三区久久 | 黄色国产高清 | 精品一区二区在线免费观看 | 黄色免费大全 | 欧美日韩成人 | 日韩精品中文字幕在线观看 | 中文字幕在线看视频国产 | 麻豆久久久久 | 九九久久精品 | 国产成人在线播放 | 国产精品欧美一区二区三区不卡 | 玖玖在线观看视频 | 国内小视频在线观看 | 国产免费成人av | 九九九电影免费看 | 亚洲欧洲国产视频 | 天天色天天综合 | 狠狠狠狠狠狠狠狠 | 久久亚洲人| 欧美一级日韩免费不卡 | 18女毛片 | 精品1区2区 | 成人久久久精品国产乱码一区二区 | 永久免费在线 | 日韩av免费在线看 | 国产精品 久久 | 成人久久国产 | 日日躁夜夜躁xxxxaaaa | 国产视频观看 | 综合久久影院 | 免费福利视频网 | 亚洲欧美精品在线 | 最近最新mv字幕免费观看 | 国产一级视频在线观看 | 日本丰满少妇免费一区 | 日韩精品一区二区三区高清免费 | 亚洲无吗视频在线 | 精品成人久久 | 在线欧美最极品的av | 国产一区二区精品久久 | 国产黄色一级片在线 | 在线亚洲欧美日韩 | 国产成人一区二区三区 | www操操操 | 婷婷在线五月 | 久久国产精品一区二区三区 | 夜夜夜夜操 | 亚洲国产99 | 日韩理论在线 | 国产成人综| 四虎成人精品在永久免费 | 欧美久久久久久久 | 久久久久久久99精品免费观看 | 操久在线 | 久久视频99 | 久久精品国产v日韩v亚洲 | 欧美精品乱码久久久久久 | 国产在线精品视频 | 国产精品免费高清 | 婷婷四房综合激情五月 | 国产亚洲视频在线观看 | 久青草电影 | 欧美午夜久久 | 国产精品二区在线 | 国产精品久久久久久a | 91精品视频导航 | 久久精品毛片 | 99资源网 | 久久美女精品 | 亚洲毛片在线观看. | 成年人毛片在线观看 | 久久精品国产精品亚洲 | 91社区国产高清 | av一本久道久久波多野结衣 | 欧美日韩首页 | 成人在线一区二区 | 最新国产精品视频 | 在线视频观看亚洲 | 久久影院亚洲 | 日韩专区av| 在线视频 日韩 | 国产黄色片一级三级 | av天天在线观看 | 日韩一区二区三区免费电影 | 婷婷在线免费视频 | 99久久精品国产免费看不卡 | 天天操夜夜操 | 黄色一级在线免费观看 | 欧美精品二区 | 国产精品6 | 国产系列 在线观看 | 亚洲精品视频久久 | 黄色大片入口 | 91成版人在线观看入口 | 五月婷婷亚洲 | 中文字幕在线观看一区二区三区 | 亚洲国产精品资源 | 狠狠干成人综合网 | 精品一区电影国产 | 久久精品99国产精品 | 高清av网 | 99精品在线免费观看 | 在线视频区 | 91手机电视 | 天天干天天在线 | 成人精品国产 | 亚洲一区免费在线 | 国产黄色av影视 | 免费观看午夜视频 | 国产精品日韩在线观看 | 视频一区二区三区视频 | 欧美日韩免费在线观看视频 | avove黑丝| 美女网站在线观看 | 日韩精品大片 | 国产午夜精品一区 | 国产在线免费 | 久九视频| 在线高清av | 日本最新中文字幕 | 69精品在线观看 | 手机在线黄色网址 | 91在线视频免费91 | 91在线免费公开视频 | 国产馆在线播放 | 国产成人三级在线播放 | 中文字幕 国产 一区 | 五月婷婷伊人网 | 人人爽久久涩噜噜噜网站 | 中文免费观看 | 日韩av在线免费看 | 欧美精品久久久久久久久老牛影院 | 视频福利在线观看 | 亚洲精品中文字幕在线 | 香蕉视频在线免费 | 亚洲国产日韩av | 中文字幕在线观看完整版电影 | 狠狠色噜噜狠狠狠狠2021天天 | 日韩网站免费观看 | 欧美成人h版电影 | 国产精品毛片久久久久久 | 午夜视频导航 | 日韩黄色大片在线观看 | 成人av播放 | 国产电影黄色av | 91精品一区国产高清在线gif | 91精品国产欧美一区二区成人 | 亚洲清纯国产 | 粉嫩av一区二区三区免费 | 在线免费性生活片 | 久久午夜国产 | 国产一性一爱一乱一交 | 欧美最爽乱淫视频播放 | 最近免费中文字幕mv在线视频3 | 久久理论片 | a级国产乱理伦片在线播放 久久久久国产精品一区 | 男女激情免费网站 | 涩涩网站在线 | 日本电影久久 | 国产91国语对白在线 | 97精品国产97久久久久久久久久久久 | 岛国av在线免费 | 国产激情小视频在线观看 | 国产福利一区二区三区在线观看 | 亚洲精品欧美视频 | 香蕉视频网站在线观看 | 国产特级毛片aaaaaa高清 | 国产一区二区在线看 | 成人在线一区二区三区 | 国产精品一区二区久久久 | 成人片在线播放 | 毛片二区| 久久er99热精品一区二区 | 亚洲三级黄色 | 久久久久久久久福利 | 久久精品电影 | 国产精品二区三区 | 伊人久久一区 | 探花视频在线观看+在线播放 | av成人免费在线看 | 亚洲最大成人免费网站 | 91色吧 | 亚洲国产精品视频 | 日韩啪视频| 一区精品在线 | 欧美先锋影音 | 99色在线观看 | 日韩特级黄色片 | 亚洲精品456在线播放第一页 | 在线精品亚洲一区二区 | 精品一区二区三区香蕉蜜桃 | 98涩涩国产露脸精品国产网 | 天堂在线成人 | 深爱激情站 | 久久久久久久久毛片 | 久久久免费 | 国产91精品一区二区 | 婷婷丁香在线观看 | 日韩三级中文字幕 | 久久久久北条麻妃免费看 | 婷婷成人亚洲综合国产xv88 | www..com毛片 | 992tv在线观看 | 麻豆一级视频 | 国产欧美在线一区 | 日韩精品一区二区在线 | 婷婷久久网 | 久久97视频 | 婷婷在线免费观看 | 亚洲 欧美 91 | 9999在线视频 | 国内精品久久久久久久影视简单 | 日韩在线免费视频 | 亚洲美女视频在线观看 | 成人观看视频 | 日本一区二区三区视频在线播放 | 国产在线色站 | 亚洲精选在线观看 | 91在线小视频 | 五月婷婷香蕉 | 日韩在线一区二区免费 | av日韩在线网站 | 在线观看视频你懂的 | www黄色com | 丝袜美女视频网站 | 在线观看 国产 | 深爱婷婷久久综合 | 日韩高清免费在线 | 18久久久久久 | www色网站 | 天天色成人网 | 黄色的网站免费看 | 成人福利在线 | 久久免费公开视频 | 国产精品成人国产乱一区 | 日日干天天爽 | 欧美在线久久 | 国产精品一区二区白浆 | 操夜夜操| 日韩视频三区 | 天天干天天玩天天操 | 波多野结衣在线观看一区 | 日韩动态视频 | 97精品一区二区三区 | 久精品视频在线观看 | 99激情网| 日韩午夜剧场 | 中文字幕在线观看免费观看 | 少妇bbb搡bbbb搡bbbb | av免费看网站 | 亚洲高清在线视频 | 久久草网 | av激情五月 | 国产一级电影免费观看 | 黄色www在线观看 | 亚洲精品乱码久久久久久蜜桃欧美 | 91精品久久久久久综合五月天 | 久久免费激情视频 | 视频一区视频二区在线观看 | 天天摸日日摸人人看 | 国产精品久久久久久久久久久久午 | 久草视频在线观 | 美女黄网久久 | 日韩爱爱网站 | 亚洲精品一区二区三区新线路 | 视频一区二区精品 | 亚洲日韩精品欧美一区二区 | 中文字幕亚洲精品在线观看 | 一色屋精品视频在线观看 | 天天综合网天天综合色 | 人人爽人人爽人人片av | 精品字幕 | 国产视频第二页 | 成人av电影在线 | 欧美日韩1区2区 | 欧美日韩精品网站 | 久久综合久久综合这里只有精品 | 在线播放91 | 91资源在线免费观看 | 久久久香蕉视频 | 黄色特一级片 | 碰超在线 | 久久综合久久伊人 | 亚洲区另类春色综合小说校园片 | av不卡在线看 | 久久国产精品视频免费看 | 日韩理论在线观看 | 最近日韩中文字幕中文 | 成年人视频在线观看免费 | 色黄www小说 | 激情丁香 | 久久草草热国产精品直播 | 日韩在线视频线视频免费网站 | 精品久久影院 | 日韩中文在线字幕 | 国产精品自拍在线 | 国产综合精品久久 | 国产福利在线免费观看 | 久久久久草 | 91视频免费播放 | 天天干视频在线 | 久久天堂网站 | 又黄又爽又色无遮挡免费 | 久久国产精品99久久久久 | 国产天天爽 | 99色精品视频 | 精品亚洲欧美无人区乱码 | 色国产在线 | 久久久久女人精品毛片 | 久久国产免费 | 亚洲蜜桃在线 | 久久久久久久久久久网站 | 日韩高清在线观看 | 深夜精品福利 | 日韩欧美一区二区三区视频 | 久草在线中文视频 | 五月婷婷综合激情网 | 免费观看久久久 | 免费影视大全推荐 | 中文字幕精品一区二区三区电影 | 免费热情视频 | 夜夜干夜夜 | 99人成在线观看视频 | 日本精品在线看 | 精品婷婷| 免费网址你懂的 | 国产99久久精品一区二区300 | 美女网站久久 | 99视频精品视频高清免费 | 色干综合| 日韩中文在线播放 | 国产成人无码AⅤ片在线观 日韩av不卡在线 | 天天干天天做天天爱 | 久久久久国产精品免费免费搜索 | 1000部国产精品成人观看 | 国产美女精品视频免费观看 | 午夜丰满寂寞少妇精品 | 天天五月天色 | 日本久草电影 | 免费看片成年人 | 国产精品午夜在线观看 | 色小说av | 中文字幕在线看视频 | 日韩区视频 | 91在线欧美 | 伊人午夜 | 国产精品久久 | 亚洲午夜精品福利 | 亚洲成人午夜在线 | 亚洲国产天堂av | 亚洲第一中文字幕 | 狠狠干天天射 | 不卡的av片 | 国产亚洲情侣一区二区无 | 国内精品视频久久 | 日本午夜免费福利视频 | 看毛片网站| 国产一区二区三区视频在线 | 亚洲精区二区三区四区麻豆 | 99精品美女 | 97色资源| 不卡av电影在线观看 | 国产精品欧美一区二区 | 五月天综合 | 99久久精品免费看国产 | 狠狠操夜夜操 | 在线影院中文字幕 | 精品国产乱码久久久久久天美 | 成年人在线免费看视频 | 亚洲天堂精品视频在线观看 | 午夜精品在线看 | 欧美一级欧美一级 | 九九久久视频 | 久精品在线 | 色欧美视频 | 中文字幕在线视频一区二区 | 伊人夜夜| 欧美一区二区在线 | 国产精品美女久久久久久免费 | 国产在线精品一区二区不卡了 | 久久伊人国产精品 | 国内精品国产三级国产aⅴ久 | 色婷婷激情五月 | 国产成人三级三级三级97 | 久草视频中文 | 日本深夜福利视频 | 久久久99精品免费观看app | 五月婷婷免费 | 玖玖在线资源 | 国产精品久久久久一区二区三区 | 91精品国产一区二区在线观看 | 亚洲第一中文字幕 | 99久久精品日本一区二区免费 | 日本中文在线播放 | 中文字幕一区二区在线观看 | 国产精品黄网站在线观看 | 四虎影视成人精品国库在线观看 | 亚洲精品国产区 | 国产v视频 | 中文视频在线 | 久久超级碰 | 中文字幕精品三级久久久 | 久久精品专区 | 成人在线一区二区三区 | 免费在线激情电影 | 日韩一区二区三区视频在线 | 婷婷六月激情 | 人人草网站| 伊人亚洲精品 | av中文在线 | 欧美一级免费黄色片 | 欧美日韩国产精品一区 | 国产精品高清一区二区三区 | 狠狠色伊人亚洲综合成人 | 国产美女在线观看 | 久久精品视频中文字幕 | 国产资源在线观看 | 超碰在线网| 五月婷在线观看 | 亚洲a色 | 国内三级在线 | 91人人在线 | 91视频在线观看大全 | 欧美一二三在线 | 免费观看完整版无人区 | 激情综合色图 | 日韩在线免费看 | 97人人模人人爽人人喊中文字 | 中文字幕在线观看第一区 | 99久高清在线观看视频99精品热在线观看视频 | 伊人天堂久久 | 国产精品1000 | 91在线小视频| 在线观看视频亚洲 | 成人a级黄色片 | 久久久久伦理电影 | 国产精品正在播放 | 成人9ⅰ免费影视网站 | 一区二区三区www | 欧美亚洲三级 | 亚州日韩中文字幕 | 手机色在线| 中文字幕久久精品亚洲乱码 | 黄色高清视频在线观看 | 欧美一级特黄aaaaaa大片在线观看 | 成人看片 | 国产一区视频导航 | 免费福利在线播放 | 国产一区二区在线观看免费 | 黄色软件视频大全免费下载 | 一区二区三区四区五区在线 | 国产91探花| 九色视频网| 欧美做受高潮 | 久久tv | 国产中年夫妇高潮精品视频 | 国产免费观看高清完整版 | 国产精品一区二区在线看 | 香蕉视频免费在线播放 | 欧美一级免费高清 | 久久久久欠精品国产毛片国产毛生 | 97精品国产97久久久久久春色 | 日本久久久亚洲精品 | 激情婷婷在线观看 | 亚洲精品国产精品国自产 | 91成人精品一区在线播放69 | 天天综合天天做天天综合 | 97精品久久| 91片黄在线观 | 日韩电影在线看 | 久久免费片 | 在线看成人 | 一区二区欧美在线观看 | 日本性生活免费看 | 亚洲精品视频在线 | 久99热| www四虎影院 | 天堂av在线免费观看 | 综合久久久久久久 | 国产精品一区二区三区视频免费 | 973理论片235影院9 | 国产精品自产拍在线观看 | 91天天操| 欧美 日韩 国产 中文字幕 | 国产99久久久精品 | 国外调教视频网站 | 欧美久久电影 | 色偷偷网站视频 | 丁香婷婷射 | 久久久久久久久久久久久9999 | 中文高清av | www.99av| 狠狠干狠狠久久 | 成人午夜久久 | 天天射日| 中文字幕在线观看91 | 午夜精品久久久久久99热明星 | 在线观看日韩精品视频 | 日韩大片在线观看 | 久久国产精品久久久久 | 国产视频精选 | 成人黄大片 | 久热免费在线 | 99久久精品免费看国产一区二区三区 | 精品久久久久久国产偷窥 | 日韩有码在线播放 | 国产麻豆精品久久 | www毛片com| 蜜臀av免费一区二区三区 | 国产精品美女免费视频 | 91免费高清视频 | 三级a毛片 | 一区二区精品在线 | 一区二区男女 | 91在线免费视频观看 | 精品国产乱码久久久久久1区二区 | 色噜噜在线观看视频 | 国产精品久久免费看 | 久久精品欧美一 | 日韩两性视频 | 日韩精品视频一二三 | 国产最新精品视频 | 欧美久久久一区二区三区 | 国产成人精品一区二区三区福利 | 久久乱码卡一卡2卡三卡四 五月婷婷久 | 一区二区三区免费在线观看视频 | 国产国产人免费人成免费视频 | 亚洲好视频| av丁香花| 在线看欧美 | 欧美日韩另类在线观看 | 国产黄色片在线 | 亚洲精品合集 | 欧美日韩一级久久久久久免费看 | 免费看黄网站在线 | 91av免费观看 | 国产成人精品午夜在线播放 | 五月在线 | 日日夜夜噜噜噜 | 青春草免费在线视频 | 免费高清在线观看成人 | 欧美日韩一区二区在线观看 | 色婷婷激情电影 | 黄网站免费久久 | 婷婷黄色片 | 91在线九色 | 国产黄色免费 | 久久五月精品 | 黄网站www| 日本精品视频免费 | 国产做a爱一级久久 | 国产精品av在线免费观看 | 日韩中字在线观看 | 亚洲最新av在线网址 | 香蕉免费在线 | 中文字幕在线观看免费 | 亚洲区另类春色综合小说 | 在线观看黄色的网站 | 怡红院av久久久久久久 | 日韩夜夜爽 | 久久精品99国产精品 | 男女啪啪视屏 | 亚洲精品在线免费观看视频 | 丁香婷婷综合色啪 | 天天碰天天操视频 | 久久久久激情 | 久久免费视频在线 | a级一a一级在线观看 | 婷婷色中文网 | 丰满少妇高潮在线观看 | 一区二区欧美日韩 | 久久国产影院 | 免费日韩一区二区三区 | 国产午夜小视频 | 国产精品一区二区免费在线观看 | 人人爽久久久噜噜噜电影 | 久久激情五月丁香伊人 | 国产精品区在线观看 | 亚洲乱亚洲乱妇 | 天天摸日日操 | 超碰日韩 | 国产视频精品久久 | 首页国产精品 | 亚洲综合丁香 | 国产精品久久久久久久久久免费看 | 狠狠干天天干 | 国产在线视频导航 | 日本久久免费电影 | 国产在线不卡 | 免费观看黄色av | 日本精品视频在线播放 | 婷婷在线网站 | 国产欧美精品xxxx另类 | 精品一区欧美 | 日韩视频二区 | 粉嫩一区二区三区粉嫩91 | 91香蕉视频在线 | 超碰官网 | 91久久丝袜国产露脸动漫 | 丁香婷婷色 | 成年人在线观看视频免费 | 精品美女国产在线 | 久久9999久久免费精品国产 | 日韩大片在线看 | 欧美日韩不卡一区二区 | 日韩视频免费观看高清完整版在线 | 亚洲综合精品在线 | 国产精品综合久久久 | 国产69精品久久久久久久久久 | 国产精品久久久久久久av电影 | 99r精品视频在线观看 | 国产区精品在线观看 | 国产123av | 人人爽久久涩噜噜噜网站 | 亚洲成a人片综合在线 | 最近中文字幕完整视频高清1 | 国产精品久久久久久久久久ktv | 国产成人精品一区二区三区福利 | 国产成人精品一区在线 | 日日夜夜人人精品 | 亚洲精品在线观看免费 | 欧美激情视频一区二区三区 | 日本精油按摩3 | 亚洲精品视频免费在线观看 | 911国产精品 | 最新中文字幕在线播放 | 日韩免费av在线 | 久久精品这里热有精品 | 久草在线观看视频免费 | 美女视频黄色免费 | 欧美激情综合五月色丁香 | 亚洲色图27p | 一区二区三区影院 | 91色影院 | 特级西西www44高清大胆图片 | 亚洲精品综合一二三区在线观看 | 在线观看国产永久免费视频 | 久草在线视频看看 | 97成人在线免费视频 | 99久久日韩精品视频免费在线观看 | 日韩免费视频线观看 | 顶级欧美色妇4khd | 亚洲精品国产精品国自产 | 中文成人字幕 | 激情视频一区二区三区 | 狠狠干美女 | 国产美女视频一区 | 国产在线观看免费观看 | 午夜.dj高清免费观看视频 | 天天操夜 | 成人午夜影院在线观看 | 国产精品九九久久久久久久 | 国产精品毛片一区视频播 | 97高清视频| 一区二区三区在线看 | 在线免费高清视频 | 免费在线观看a v | 91视频高清 | 深爱激情开心 | 一区二区三区中文字幕在线观看 | 色香蕉视频 | 91人网站 | 国产精品久久久久久久久免费 | 国产免费一区二区三区网站免费 | 欧美日韩国产精品久久 | 国产亚洲精品成人 | 曰本三级在线 | 久久久电影网站 | 欧美日韩国产一区二区三区 | 97在线观看免费观看 | 欧洲色吧 | 欧美了一区在线观看 | 欧美成人在线免费 | 久草在线免费新视频 | 四虎影视成人 | a√天堂中文在线 | 日韩欧美一二三 | 奇人奇案qvod| 国产99久久九九精品免费 | 久草在线资源网 | 欧美黑吊大战白妞欧美 | 久99久精品视频免费观看 | 国产精品欧美精品 | 日韩精品亚洲专区在线观看 | 日韩av在线免费看 | 亚洲动漫在线观看 | 欧美日韩视频一区二区 | 国产视频一二区 | 五月天激情视频在线观看 | 国产成人久久av977小说 | 日本xxxxav | 在线中文字母电影观看 | 亚洲视频在线观看免费 | 亚洲精品国精品久久99热 | 91欧美精品 | 99精品国产亚洲 | 日韩av成人在线 | 国产精品99在线观看 | 91亚洲夫妻 | 国产精品三级视频 | 欧美日韩国产高清视频 | 亚洲资源在线观看 | 久久久久久久av麻豆果冻 | 久久综合久久综合这里只有精品 | 四虎成人精品永久免费av | 久久精品99国产精品酒店日本 | 五月婷婷色丁香 | 人人爱人人舔 | 亚洲精品日韩在线观看 | 九九热在线播放 | 国产精品九色 | 91在线免费视频观看 | 在线看片一区 | 久久久久99999| 国内久久久久 | 日本性xxx| 精品久久国产 | 午夜视频色 | 亚洲综合色丁香婷婷六月图片 | 精品无人国产偷自产在线 | 在线视频 成人 | 国产视频一区二区在线观看 | 国产精品专区h在线观看 | 免费午夜网站 | h文在线观看免费 | 91成人精品一区在线播放69 | 99精品久久久 | 91精品高清| 国产欧美久久久精品影院 | 久久天堂网站 | 久久与婷婷 | 嫩草av在线 | 亚洲天堂网在线视频观看 | 超碰在线人人草 | 精品国产自在精品国产精野外直播 | 国产伦精品一区二区三区免费 | 国产丝袜一区二区三区 | 天天干婷婷 | 天天操天天怕 | 国产在线999| 国产精品 中文字幕 亚洲 欧美 | 欧美高清成人 | 欧美日韩一区二区三区在线观看视频 | 国产91影院 | 国产午夜精品理论片在线 | 欧美九九九 | 国产在线观看免费观看 | 久久精品国产成人 | 国产啊v在线 | 欧美日韩一级久久久久久免费看 | 日本久久久久久久久久久 | 久草在线播放视频 | 五月激情丁香图片 | 黄网站免费久久 | 国产高清精品在线 | 日韩免费看视频 | 亚洲综合色网站 | 国产成人在线看 | av官网在线 | 新版资源中文在线观看 | 日韩精品一区二区三区免费视频观看 | 亚洲精色| 中文字幕精品一区二区三区电影 | 射久久| 久久草网站 | 麻豆精品在线视频 | 奇米网8888 | 在线播放视频一区 | 视频一区在线免费观看 | 国产黄| 久久综合婷婷综合 | 91在线中文字幕 | 热久久免费国产视频 | 日日草av | 在线观看日韩专区 | 久久精品99久久久久久2456 | 欧美久久久久久久久久久久久 | 天天添夜夜操 | 色婷婷狠狠干 | 欧美另类xxx | 国产免费三级在线观看 | 久草网站在线观看 | 色婷婷av国产精品 | 国产欧美高清 | 欧美 日韩 视频 | 日韩精品一二三 | 久草久热 | 中文亚洲欧美日韩 | 午夜久久久久 | 欧美日韩在线观看一区二区三区 | 色播亚洲婷婷 | 一区在线观看视频 | 九九视频精品免费 | 亚洲激情在线观看 | 国产成人精品午夜在线播放 | 久久96国产精品久久99漫画 | 91女神的呻吟细腰翘臀美女 | 成人免费观看视频大全 | 日韩精品不卡在线 | 国产黄色免费在线观看 | 精品a在线 | 视频直播国产精品 | 黄色免费网站下载 | 探花视频在线版播放免费观看 | 久久久久久久久久久久亚洲 | 91网免费观看 | 免费亚洲视频在线观看 | 婷婷丁香在线视频 | 97涩涩视频| 欧美日韩精品在线一区二区 | 美女黄频网站 | 亚洲视频电影在线 | 色婷婷精品大在线视频 | 日韩av电影网站在线观看 | av在线免费在线 | 69夜色精品国产69乱 | 亚洲国产小视频在线观看 | 精品国产一区二区三区男人吃奶 | 51久久夜色精品国产麻豆 | 亚洲专区一二三 | 精品人人人| 成 人 黄 色视频免费播放 | 亚洲综合网站在线观看 | 在线观看av黄色 | 久久精品视频在线观看 | 欧美激情va永久在线播放 | 天天躁日日躁狠狠躁av中文 | а天堂中文最新一区二区三区 | 日韩精品视频第一页 | 天堂网一区二区三区 | 国产色拍 | 亚洲精品免费在线观看视频 | 欧美性高跟鞋xxxxhd | 99在线观看免费视频精品观看 | 夜夜躁狠狠燥 | 欧美精品免费在线 | 69亚洲精品 | 日韩免费精品 | 久久国产二区 | www欧美色| 欧美精品生活片 | 不卡av电影在线观看 | 五月婷婷色综合 | av在线电影网站 | 91 中文字幕 | 一本一本久久a久久精品牛牛影视 | 免费激情网 | 久久国产高清 | 国产日韩精品一区二区三区 | 亚洲黄色在线 | 国产精品福利午夜在线观看 | 久久高清免费 | av免费电影在线观看 | 99国内精品久久久久久久 | 精品视频亚洲 | 亚洲国产成人高清精品 | 免费看片在线观看 | 免费观看9x视频网站在线观看 | 一区二三国产 | 久久精品国产一区二区三 | www.久久久com | 婷婷丁香六月 | 日本在线观看视频一区 | 黄色h在线观看 | 亚洲精品福利在线 | 日本三级人妇 | 日日夜夜精品视频天天综合网 | 国产美女久久 | www.日韩免费 | 色www精品视频在线观看 | 亚洲精品福利在线观看 | 日本一区二区三区免费看 | 日韩一区二区三区高清在线观看 | 亚洲人成免费网站 | 美国av大片| 国产精品久久久久久久久久妇女 | 色婷婷激情网 | 精品国产区 | 91大片网站| 色综合久久88 | 国产亚洲视频在线免费观看 | 人人干天天射 | 热久久国产 | 激情五月婷婷综合网 | 欧美一区二区视频97 | 欧美日韩91 | 久久精品视频2 | 波多野结衣视频一区二区 | 天天爽天天搞 | 成人久久18免费网站 | 亚洲国产视频a | 日韩在线免费观看视频 | 精品在线一区二区三区 | 色哟哟国产精品 |