更多"[单选题]下面代码的输出结果是Foriinrange(1,6):Ifi"的相关试题:
[单选题]下面代码的输出结果是
Foriinrange(1,6):
Ifi%3==0:
Break
Else:
Print(i,end=",")
A.1,2,3,
B.1,2,3,4,5,6
C.1,2,
D.1,2,3,4,5,
[单选题]下面代码的输出结果是
Sum=0
Foriinrange(2,101):
Ifi%2==0:
Sum+=i
Else:
Sum-=i
Print(sum)
A.-50
B.51
C.50
D.49
[单选题]下面代码的输出结果是
A.mir
B.mirror
C.mi
D.mirror
[单选题]下面代码的输出结果是
S="ThepythonlanguageisA、multimodellanguage."
Print(s.split(''))
A.Thepythonlanguageisamultimodellanguage.
B.['The','python','language','is','a','multimodel','language.']
C.ThepythonlanguageisA、multimodellanguage.
D.系统报错
[单选题]下面代码的输出结果是()
S="Thepythonlanguageisacrossplatformlanguage."
Print(s.find('language',30))
A.11
B.40
C.10
D.系统报错
[单选题]下面代码的输出结果是
S1="ThepythonlanguageisA、scriptinglanguage."
S2=s1.replace('scripting','general')
Print(s2)
A.ThepythonlanguageisA、scriptinglanguage.
B.['The','python','language','is','a','scripting','language.']
C.系统报错
D.ThepythonlanguageisA、generallanguage.
[单选题]下面代码的输出结果是
Str1="mysqlsqlserverPostgresQL"
Str2="sql"
Ncount=str1.count(str2,10)
Print(ncount)
A.0
B.3
C.4
D.2
[单选题]下面代码的输出结果是
X=0o1010
Print(x)
A.10
B.1024
C.520
D.2768
[单选题]下面代码的输出结果是:print(pow(2,10))
A.100
B.12
C.1024
D.20
[单选题]下面代码的输出结果()
Foriinrange(0,100):
Ifi%2==0:
Sum-=i
Else:
Sum+=i
Print(sum)
A.-50
B.49
C.50
D.-49
[单选题]下面代码的输出结果是()
X=0x1010
Print(x)
A.4112
B.520
C.10
D.1024
[单选题]下面代码的输出结果是()
X=0b1010
Print(x)
A.16
B.256
C.1024
D.10