Python 初級 5 判斷再判斷(二)

複習: 分支:完成測試並根據結果做出判斷稱爲分支。 代碼塊:一行或放在一起的多行代碼 縮進:一個代碼行稍稍靠右一點 關係操作符(比較操作符):==, >, >=, <, <=, != 一、其他類型的測試 >, >= 練習1: n1 = int(input("please input first num: ")) n2 = int(input("please input second num: ")
相關文章
相關標籤/搜索