python元组类型_Python基本数据类型(元组)

1 lass tuple(object):2 """

3 tuple() -> empty tuple4 tuple(iterable) -> tuple initialized from iterable's items5

6 If the argument is a tuple, the return value is the same object.7 """

8 def count(self, value): #real signature unknown; restored from __doc__

9 """T.count(value) -> integer -- return number of occurrences of value"""

10 return011

12 def index(self, value, start=None, stop=None): #real signature unknown; restored from __doc__

13 """

14 T.index(value, [start, [stop]]) -> integer -- return first index of value.15 Raises ValueError if the value is not present.16 """

17 return018

19 def __add__(self, y): #real signature unknown; restored from __doc__

20 """x.__add__(y) <==> x+y"""

21 pass

22

23 def __contains__(self, y): #real signature unknown; restored from __doc__

24 """x.__contains__(y) <==> y in x"""

25 pass

26

27 def __eq__(self, y): #real signature unknown; restored from __doc__

28 """x.__eq__(y) <==> x==y"""

29 pass

30

31 def __getattribute__(self, name): #real signature unknown; restored from __doc__

32 """x.__getattribute__('name') <==> x.name"""

33 pass

34

35 def __getitem__(self, y): #real signature unknown; restored from __doc__

36 """x.__getitem__(y) <==> x[y]"""

37 pass

38

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

40 pass

41

42 def __getslice__(self, i, j): #real signature unknown; restored from __doc__

43 """

44 x.__getslice__(i, j) <==> x[i:j]45

46 Use of negative indices is not supported.47 """

48 pass

49

50 def __ge__(self, y): #real signature unknown; restored from __doc__

51 """x.__ge__(y) <==> x>=y"""

52 pass

53

54 def __gt__(self, y): #real signature unknown; restored from __doc__

55 """x.__gt__(y) <==> x>y"""

56 pass

57

58 def __hash__(self): #real signature unknown; restored from __doc__

59 """x.__hash__() <==> hash(x)"""

60 pass

61

62 def __init__(self, seq=()): #known special case of tuple.__init__

63 """

64 tuple() -> empty tuple65 tuple(iterable) -> tuple initialized from iterable's items66

67 If the argument is a tuple, the return value is the same object.68 # (copied from class doc)69 """

70 pass

71

72 def __iter__(self): #real signature unknown; restored from __doc__

73 """x.__iter__() <==> iter(x)"""

74 pass

75

76 def __len__(self): #real signature unknown; restored from __doc__

77 """x.__len__() <==> len(x)"""

78 pass

79

80 def __le__(self, y): #real signature unknown; restored from __doc__

81 """x.__le__(y) <==> x<=y"""

82 pass

83

84 def __lt__(self, y): #real signature unknown; restored from __doc__

85 """x.__lt__(y) <==> x

86 pass

87

88 def __mul__(self, n): #real signature unknown; restored from __doc__

89 """x.__mul__(n) <==> x*n"""

90 pass

91

92 @staticmethod #known case of __new__

93 def __new__(S, *more): #real signature unknown; restored from __doc__

94 """T.__new__(S, ...) -> a new object with type S, a subtype of T"""

95 pass

96

97 def __ne__(self, y): #real signature unknown; restored from __doc__

98 """x.__ne__(y) <==> x!=y"""

99 pass

100

101 def __repr__(self): #real signature unknown; restored from __doc__

102 """x.__repr__() <==> repr(x)"""

103 pass

104

105 def __rmul__(self, n): #real signature unknown; restored from __doc__

106 """x.__rmul__(n) <==> n*x"""

107 pass

108

109 def __sizeof__(self): #real signature unknown; restored from __doc__

110 """T.__sizeof__() -- size of T in memory, in bytes"""

111 pass

112

113 tuple

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值