更多"[单选题]str01='ABCDEFG'Print(str01[4])"的相关试题:
[单选题]str01="ABCDEFG"
Print(len(str01))
以上Python语句的执行结果为:()。
A.5
B.6
C.7
D.8
[单选题]str01=""ABCDEFG""
Print(str01[4])
以上Python语句的执行结果为:()
A."C"
B."D"
C."E"
D."F"
[单选题]str01="ABCDEFG"
Print(str01[1:3])
以上Python语句的执行结果为:()
A."BC"
B."BCD"
C."AB"
D."ABC"
[单选题]str01=""ABCDEFG""
Print(len(str01))
以上Python语句的执行结果为:()
A.5
B.6
C.7
D.8"
[单选题]str01="ABCDEFG"
Print(str01[-1:-3])
以上Python语句的执行结果为:()。
A.[]
B."EFG"
C."FG"
D."GF"
[单选题]str01="ABCDEFG"
Print(str01[-1:-3:-1])
以上Python语句的执行结果为:()。
A."GFE"
B."EFG"
C."FG"
D."GF"
[单选题]if2:
Print(5)
Else:
Print(6)
以上Python语句的执行结果为:()。
A.0
B.2
C.5
D.6
[单选题]str01="HelloWorld"print(str01.find("e"))以上Python语句的执行结果为:
()。
A.1
B.2
C.TRUE
D.FALSE
[单选题]str01="HelloWorld"
Print(str01.find("Y"))
以上Python语句的执行结果为:()。
A.程序报错
B.-1
C.True
D.FALSE
[单选题]下列语句执行结果就是什么?()
A=[1,2,3]
Print(a*3)
A.[1,2,3,1,2,3,1,2,3]
B.[1,8,27]
C.(3,6,9)
D.[3,6,9]
[单选题]str01="www.baidu.com.cn"
Print(len(str01.split(".")))
以上Python语句的执行结果为:()。
A.2
B.3
C.4
D.5
[单选题]str01=‘www.abC.com.cn’
Print(len(str01.split(".")))#csv
以上Python语句的执行结果为:()
A.2
B.3
C.4
D.5
[单选题]下列语句得执行结果就是什么?()
A=1
Foriinrange(5):
Ifi==2:
Break
A+=1
Else:
A+=1
Print(a)
A.1
B.2
C.3
D.6
[多选题]在Python中,有age_0=22,age_1=18,下列语句中执行结果为True的有()
A.age_0>=21andage_1>=21
B.age_0>=18andage_1>=18
C.age_0>=21orage_1>=21
D.age_0>=18orage_1>=18
[单选题]以下python语句(Python2.7.13)的执行结果是()
Importre
Key=r"matcathatpat"
P1=r"[^c|p]at"
Pattern1=re.compile(p1)
Print(pattern1.findall(key))
A.['mat','hat']
B.['cat','pat']
C.['mat','hat','pat']
D.[]