問題詳情

50. 如附圖所示,在 Python 語言中,可以使用 assert 進行斷言測試,請問附圖陳述句的測試效果,下列敘述哪一項正確?


(A) 當 one 與 two 不相等或 one 與 three 不相等時引發錯誤
(B) 當 one 與 two 相等且 one 與 three 相等時引發錯誤
(C) 當 one 與 two 不相等時,引發錯誤,顯示 three 的內容
(D) 當 one 與 two 相等時,引發錯誤,顯示 three 的內容

參考答案

答案:C
難度:計算中-1
書單:沒有書單,新增