Created
June 18, 2020 20:30
-
-
Save linzino7/3a9b675dbc92d10b92e52f6c6daefb78 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 = 1 | |
def Sum(X,Y): | |
global tmp | |
tmp = X + Y | |
return tmp | |
# 呼叫並使用Function | |
Sum(5,6) | |
print("tmp值為:",tmp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment