题目内容

运行如下程序,输出结果的是: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

如下程序的输出结果是:x = [‘90’,‘87’,‘90’]n = 90print(x.count(n))

A. 1
B. 2
C. None
D. 0

答案查题题库