Last active
March 30, 2020 03:57
-
-
Save Celia-code/fb2e0775b90140d237e0b4e4a54f7313 to your computer and use it in GitHub Desktop.
if語句
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
name = 'Python' | |
if name == 'Python': # 判斷變量是否为'Python' | |
print("Hello World") # 打印Hello World | |
else: | |
print(name) # 條件不成立,打印出變量name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment