单选题
适中
#4290
在Python中,type()函数用于查看对象的数据类型,在Python shell 中运行type(‘6’*20),运行结果为?( )
在Python中,type()函数用于查看对象的数据类型,在Python shell 中运行type(‘6’*20),运行结果为?( )
答案与解析
正确答案:B
解析
'6'*20的运行结果是字符串20个6,即'66666666666666666666',因此type('6'*20)运行结果为字符串类型,输出<class 'str'>,B项正确。