如下程序的输出结果是:ls = [“浣熊”,“豪猪”,“艾草松鸡”,“棉尾兔”,“叉角羚”]x = “豪猪”print(ls.index(x,0))
查看答案
运行如下程序,输出结果的是:str1 = “Nanjing University”str2 = str1[:7] + " Normal " + str1[-10:]print(str2)
A. Normal U
B. Nanjing Normal
C. Normal University
D. Nanjing Normal University
运行如下程序,输出结果的是:print(" love “.join([“Everyday”,“Yourself”,“Python”,]))
A. Everyday love Yourself
B. Everyday love Python
C. love Yourself love Python
D. Everyday love Yourself love Python
如下程序的输出结果是:L1 =[‘abc’, [‘123’,‘456’]]L2 = [‘1’,‘2’,‘3’]print(L1 > L2)
A. False
B. TypeError: ‘>’ not supported between instances of ‘list’ and ‘str’
C. 1
D. True
如下程序的输出结果是:L2 = [1,2,3,4]L3 = L2.reverse() print( L3)
A. [4, 3, 2, 1]
B. [3, 2, 1]
C. [1,2,3,]
D. None