Created
April 27, 2020 12:51
-
-
Save Celia-code/9380c7a34b0fa6797f06f919333d08ce to your computer and use it in GitHub Desktop.
布爾值
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = int(input('數值1:')) | |
b = int(input('數值2:')) | |
# 如果a大於b為真,執行下面語句;否則執行else語句 | |
if a > b: | |
print(a, '大於', b) | |
else: | |
print(a, '小於', b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment