下面代码的输出结果是 x=12.34 print(type(x))

admin2019-08-30  25

问题 下面代码的输出结果是
x=12.34
print(type(x))

选项 A、<class’complex’>
B、<class’int’>
C、<class’float’>
D、<class’bool’>

答案C

解析 type(x)函数可用于返回对象x的类型。
转载请注明原文地址:https://kaotiyun.com/show/iX6p777K
0

最新回复(0)