题目内容

下面代码的输出结果是( )s = {}print(type(s))

A.
B.
C.
D.

查看答案
更多问题

以下程序执行结果是()monthflower={"1月":"梅花","2月":"杏花","3月":"桃花","4月":"牡丹花","5月":"石榴花","6月":"莲花","7月":"玉簪花","8月":"桂花","9月":"菊花","10月":"芙蓉花","11月":"山茶花","12月":"水仙花"}if "桂花" in monthflower:print("我最喜欢{}".format(monthflower["8月"]))else:print("我最喜欢{}".format(monthflower["1月"]))

A. 我最喜欢桂花
B. 我最喜欢梅花
C. 我最喜欢1月
D. 我最喜欢8月

下面代码的输出结果是( )a = []for i in range(2,10):count = 0for x in range(2,i-1):if i % x == 0:count += 1if count == 0:a.append(i)print(a)

A. [4, 6 ,8 ,9 ,10]
B. [2 ,4 ,6 ,8]
C. [3 ,5 ,7 ,9]
D. [2, 3, 5, 7]

以下程序执行时输入5,结果是()monthflower={"1月":"梅花","2月":"杏花","3月":"桃花","4月":"牡丹花","5月":"石榴花","6月":"莲花","7月":"玉簪花","8月":"桂花","9月":"菊花","10月":"芙蓉花","11月":"山茶花","12月":"水仙花"}n=input("请输入1--12的月份:")print(n+"月份的代表花是:"+monthflower.get(n))

A. 5月份的代表花是:石榴花
B. 5月份的代表花是:莲花
C. 程序出错
D. 5月份的代表花是:桂花

下面代码的输出结果是( )a = {}if isinstance(a,list):print("{} is list".format(a))else:print("{} is {}".format("a",type(a)))

A. a is list
B. a is dict
C. a is
D. a is

答案查题题库