判断题 float类型转换为int类型时去除小数点后面的数。

A、 正确
B、 错误
下载APP答题
由4l***pl提供 分享 举报 纠错

相关试题

单选题 x = True
y = False
z = False
if x or y and z:
print("yes")
else:
print("no")

以上代码输出结果为?

A、

yes

B、

no

单选题 22 % 3 表达式输出结果为?

A、1
B、3
C、7
D、7.3

单选题 以下哪个表达式代表 x 的 y 次方?

A、

x**y

B、

x*y

C、

x^y

D、

x^^y

单选题 如果表达式的操作符有相同的优先级,则运算规则是?

A、从左到右
B、从右到左
C、任意

单选题 3*2**3 表达式输出结果为?

A、24
B、15
C、18
D、216

单选题 x = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]

y = [x[i][i] for i in range(len(x))]

print(y)

以上运行结果为________。

A、

[1,4,7]

B、

[3,6,9]

C、

[2,5,8]

D、

[1,5,9]

单选题 x = True
y = False
z = False
if not x or y:
print(1)
elif not x or not y and z:
print(2)
elif not x or y or not y and x:
print(3)
else:
print(4)

以上代码输出结果为?

A、1
B、2
C、3
D、4

单选题 9//2 表达式输出结果为?

A、5
B、4
C、1
D、8