>>> x = "W3Cschool"
>>> type(x)
<type 'str'>
>>> x=100
>>> type(x)
<type 'int'>
>>> x=('1','2','3')
>>> type(x)
<type 'tuple'>
>>> x = ['1','2','3']
>>> type(x)
<type 'list'>
Python-type


>>> x = "W3Cschool"
>>> type(x)
<type 'str'>
>>> x=100
>>> type(x)
<type 'int'>
>>> x=('1','2','3')
>>> type(x)
<type 'tuple'>
>>> x = ['1','2','3']
>>> type(x)
<type 'list'>
发表回复