
Python 入門指南 5.0
exercise0506.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## 定義兩個使用者輸入數字 a = float(input("請輸入第一個數字:")) b = float(input("請輸入第二個數字:")) # 印出比較運算的結果 print(a > b) print(a >= b) print(a < b) print(a <= b) print(a == b) print(a != b) # 檔名: exercise0506.py # 說明:《Python入門指南》的練習 # 網站: http://kaiching.org # 作者: 張凱慶 # 時間: 2023 年 8 月 |
