下列程序运行显示为( )
def hello():
print("hello")
res = hello()
print(res)
def hello():
print("hello")
res = hello()
print(res)
A. | B. | C. | D. |
更新时间:2020-12-26 11:11:11
|
【知识点】 典型算法
相似题推荐
选择题
|
较易
(0.85)
【推荐1】关于Python,以下几种说法不正确的是( )。
A.Python是一种高级程序设计语言 |
B.Python属于汇编语言,或者说属于低级语言 |
C.Python是一种代表简单主义思想的语言,它具有简单、免费、开源和可移植等特点 |
D.Python是一种面向对象的、解释性计算机语言 |
您最近一年使用:0次
选择题
|
较易
(0.85)
【推荐2】以下程序段运行后,整型变量s的值是( )
s=1
for i in range(1,11,3):
s=1
for i in range(1,11,3):
s=s*i
print (s)A.28 | B.36 | C.55 | D.280 |
您最近一年使用:0次
选择题
|
较易
(0.85)
名校
【推荐3】以下关于Python自带数据结构的运算结果中正确的是哪一项?( )
A.l=[1,2,3,4,5]del l[2:4]则运算之后1为[1,2,3] |
B.basket=['apple','banana','apple','orange']fruit=set(basket)len(fruit) 的结果是5 |
C.basket=['apple','banana','apple','orange','melo']fruit=set(basket)len(fruit) 的运算结果是3 |
D.1=[2,1,3,5,4]remove(3)sort()则运算之后1为[1,2,4,5] |
您最近一年使用:0次