Skip to content

Instantly share code, notes, and snippets.

@Celia-code
Created April 27, 2020 12:53
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/761cee39ba9743d4f378fa19e53d9eba to your computer and use it in GitHub Desktop.
Save Celia-code/761cee39ba9743d4f378fa19e53d9eba to your computer and use it in GitHub Desktop.
布爾值
a = int(input('數值1:'))
b = int(input('數值2:'))
while a > b:
print(a, '大於', b)
break
else:
print(a, '小於', b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment