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'>

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注