下面代码的输出结果是( )s1 = "The python language is a scripting language."s2 = s1.replace('scripting','general')print(s2)
A. The python language is a scripting language.
B. ['The', 'python', 'language', 'is', 'a', 'scripting', 'language.']
C. 系统报错
D. The python language is a general language.
查看答案
下面代码的输出结果是( )a ="Python"b = "A Superlanguage"print("{:->10}:{:-<19}".format(a,b))
A. ----Python:A Superlanguage----
B. ----Python:----A Superlanguage
C. The python language is a multimodel language.
D. Python----:----A Superlanguage
以下选项中,输出结果为False的是( )
A. >>> 'python' < 'pypi'
B. >>> 'ABCD' == 'abcd'.upper()
C. >>> 'python123' > 'python'
D. >>> ''<'a'
下面代码的输出结果是( )a = "alex"b = a.capitalize()print(a,end=",")print(b)
A. alex,ALEX
B. ALEX,alex
C. alex,Alex
D. Alex,Alex
下面代码的输出结果是( )a = 20b = a | 3a &= 7print(b ,end=",")print(a)
A. 6.66667,4
B. 4,6.66667
C. 4,23
D. 23,4