# 第二單元:條件判斷 # 指令: 如果 if > 條件三兄弟: if elif else > 如果1 如果2,3,4,5 其他 * 條件後面要有 : 冒號(注意是英文冒號) * else為其他所有狀況,不可以有條件!!! 範例: ``` score = int( input("請輸入分數") ) if score >= 90: print("優秀") elif score >= 60: print("及格") else: print("不及格") ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up