若執行以下的 Python 程式碼,則螢幕上的輸出為: a = 2 b = 6 c = 4 d = 8 print(a>b or not c<=d, a!=d and b>c)
AFalse False
BFalse True正確答案
CTrue False
DTrue True
答案與詳解
左式:a>b 為 False,c<=d 為 True,not True 為 False,False or False = False;右式:True and True = True。故為 False True。
