Skip to content

Instantly share code, notes, and snippets.

@Celia-code
Created April 27, 2020 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Celia-code/9380c7a34b0fa6797f06f919333d08ce to your computer and use it in GitHub Desktop.
Save Celia-code/9380c7a34b0fa6797f06f919333d08ce to your computer and use it in GitHub Desktop.
布爾值
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