执行下列 Python 程序,输出结果是什么( ) a = True b = 5.6 < 5 c = " python " = = " ython " print ( ( a and b ) or c ) A 0 B 1C TrueD False

执行下列 Python 程序,输出结果是什么(              )

 a = True 

b = 5.6 < 5 

c = " python " = = " ython " 

print ( ( a and b ) or c ) 

A 0 

B 1

C True

D False

参考答案与解析:

相关试题

执行下列 Python 程序,输出结果是什么? a = 5 &gt; 3 b = 23 ! = 20 c = "python" == "Python"

执行下列 Python 程序,输出结果是什么? a = 5 > 3 b = 23 ! = 20 c = "python" == "Python" d = 34

  • 查看答案
  • 执行下列Python程序,输出结果是什么?a='python'b="python"print(a==b)A.pythonB.TypeError出错C.True

    执行下列Python程序,输出结果是什么?a=pythonb="python"print(a==b)A.pythonB.TypeError出错C.True执行下

  • 查看答案
  • 执行下列Python程序,输出结果是什么?a=1.5&gt;0.5b=5.6&lt;5c=34&lt;=34print(not( (a or b) )and c)A、0B、1C

    执行下列Python程序,输出结果是什么?a=1.5>0.5b=5.6<5c=34<=34print(not( (a or b) )and c)A、0B、1C、

  • 查看答案
  • 执行下列Python程序,输出结果是什么?a='computer'b="Computer"print(a==b)A、pythonB、TypeError出错C、Tru

    执行下列Python程序,输出结果是什么?a=computerb="Computer"print(a==b)A、pythonB、TypeError出错C、Tru

  • 查看答案
  • 执行下列Python程序,输出结果是什么?( )x=True y=False w=False z=True print(not((x and y)or(w or z)))A 0 B 1 C Tr

    执行下列Python程序,输出结果是什么?( )x=True y=False w=False z=True print(not((x and y)or(w

  • 查看答案
  • 执行下列Python程序,输出结果是( ) a= 5.5>4.2 b= ‘computer’==’Computer’ c= 34

    执行下列Python程序,输出结果是( ) a= 5.5>4.2 b= ‘computer’==’Computer’ c= 34A. 0B. 1C. TrueD

  • 查看答案
  • Python中"4"+"5"的结果是________。

    Python中"4"+"5"的结果是________。A. '45'B. '9'C. 45D. 9

  • 查看答案
  • 执行以下程序,输出结果是()。x="abc"y="acd"if x&gt;y:print("abc")else:print(&quo

    执行以下程序,输出结果是()。x="abc"y="acd"if x>y:print("abc")else:print("acd")A abcB 语法错误[1]C

  • 查看答案
  • Python语句 print(type((1,2,3,4)))的结果是: A &lt; class 'tuple' &gt; B &lt; clas

    Python语句 print(type((1,2,3,4)))的结果是: A < class tuple > B < class dict >

  • 查看答案
  • 下列程序执行后,输出结果是: &gt;&gt;&gt;name = input("输入你的姓名:") 输入你的姓名:Conan &gt;&g

    下列程序执行后,输出结果是: >>>name = input("输入你的姓名:") 输入你的姓名:Conan >>>num = eval(input("输入你的

  • 查看答案