题目内容

for i in range(5):print(i)输出结果为()

A. 01234
B. 01234
C. 012345
D. 0,1,2,3,4,5

查看答案
更多问题

forxinrange(4):s1="Hello"ifx%2==0:s1=s1+"Python"ifx%3==0:continueprint(s1)else:print("end_loop")程序块输出结果为()

A. HelloHelloPython
B. HelloHelloPythonend_loop
C. HelloHelloHelloPythonHello
D. HelloHelloPythonHelloend_loop

forxinrange(1,4):s1="Hello"ifx%2==0:s1=s1+"Python"ifx%3==0:breakprint(s1)else:print("end_loop")程序块输出结果为()

A. 无任何输出
B. HelloHelloPython
C. HelloHelloPythonend_loop
D. HelloHelloPythonHelloend_loop

下列Python程序的运行结果是( )。x=0y=Trueprint(x>y and 'A'<'B')

A. True
B. False
C. ture
D. false

3 and 5运行后结果为( )

A. 3
B. 5
C. Ture
D. False

答案查题题库