(1,2,3,4,5)
(1,'a',True)
(1,'a',True)*3
(1,2,3,4,5)[0]
(1,2,3,4,5)[0:2]
(1,2,3,4,5)+(1,2,3,4,5)
type((1,2,3))#Out[7]: tuple元组
type(1)#Out[9]: int
type((1))#Out[9]: int
type((1,))#Out[16]: tuple
type(())#Out[17]: tuple
type([1,2,33])#Out[11]: list
type([1])#Out[18]: list
type('hello')#Out[14]: str
print(type('hello'))#<class 'str'>
#class类
#########int,float,bool
#########str,list,tuple,序列
######序列通用操作
'hello me word'[-7:-5]#Out[20]: 'me'
#+,*
'a' in ['a','b','c','d','e']#Out[24]: True
'f' in ['a','b','c','d','e']#Out[23]: False
'a' not in ['a','b','c','d','e']#Out[22]: False
len(['a','b','c','d','e'])#列表长度Out[25]: 5
len('abcdef')#Out[29]: 6
max([1,2,3,4,5,6])#Out[27]: 6
min([1,2,3,4,5,6])#Out[28]: 1
max('abcdef')#Out[30]: 'f'
min('abcdef')#Out[31]: 'a'
min('abc def')#Out[32]: ' '
#####ascll码
ord(' ')
ord('a')
ord('z')