11615 . 判断题 Puls

下面Python代码执行时将报错,因为10是整数类型,a是布尔类型,由于类型不同,不能进行加法运算。

a = True
print(10 + a)
azure
中等
0
收藏
题解讨论
反馈