相关试题
单选题
阅读下面的程序:
Class Test:
data1 = 10
def __str__(self): return "data1 = %d" % (self.data1)
Test = Test()
Print(test)
Print(repr(test))
上述程序最终执行的结果为()。
单选题
阅读下面的一段程序:
Score = -1
If score >= 0 and score <=100:
if score >= 80 and score <= 100:
print("优")
elif score >= 60 and score < 80:
print("良")
elif score >= 0 and score < 60:
print("差")
Else:
print("无效数字")
运行程序后,最终执行的结果为()。
单选题 下列选项中,属于私有属性的是()。
单选题
下列选项中,用来表示Python代码块的是()。
单选题
下列选项中,描述random()表示的范围正确的是( )。
单选题
下列语句中,用来结束本次循环执行下一次循环的是()。
单选题
离开上下文管理器时会调用下面哪个方法?()
单选题
请看下面的一段程序:
Info = {1:'小明', 2:'小黄',3:'小兰'}
Info[4] = '小红'
Info[2] = '小白'
Print(info)
运行程序,最终输出的结果为( )。