下列表达式中返回 为True的是:
A. (3,2)>(‘a’,’b’)
B. 0x56 > 56
C. ‘abc’>'xyz’
D. (3,2)>(‘a’,’b’)
以下不能创建一个字典的语句是
A. d1 = {}
B. d3 = {[1,2,3]: “uestc”}
C. d2 = { 3 : 5 }
D. d4 = {(1,2,3): “uestc”}
下面的代码,哪些会输出1,2,3三个数字(多选):
A. for i in range(3): print(i)
B. i = 1 while i < 3: print(i) i+=1
C. aList = [0,1,2] for i in aList: print(i+1)
D. for i in range(3): print(i+1)
下列Python语句正确的是
A. max = x > y ? x : y
B. min = x if x < y else y
C. while True:pass
D. if(x>y) print(x)