《座》今天送完孩子们,没有直接回家,想去码头走走。是一个有雾的秋天的早晨,店铺都还没有开门,街道上很安静。走着走着,一些摆放在那里的座位引起了我的注意。回到家打开圣经,今天要看的经文我想刚好和这些情景呼应,说:“我的心哪!你要仍归安乐,因为耶和华用厚恩待你。” 英文更加贴切,Return to your rest, my soul, for the LORD has been good to you.
椅子是要我们休息,rest的地方。愿可以真正享受这样的休息吧。 https://t.cn/RU1Uhrg
椅子是要我们休息,rest的地方。愿可以真正享受这样的休息吧。 https://t.cn/RU1Uhrg
1. 变量搜索顺序:local→enclosed→global→built in
局部变量:定义在函数内部,作用于整个函数
全局变量:在全局作用域,作用于整个文件
2. 同一变量名,函数内的local变量名与函数外的global变量名互不影响
Variable=a #global#
def function(para1,para2):
Variable = para1+para2 #local#
Return variable #local#
Print(variable) #global#
3. 函数内可使用关键字global 修改局部变量,进而修改全局变量的值
variable=a #global#
def function(para1,para2):
global variable
variable = para1+para2 #local =b
return variable #local#
print(variable) #global =b
4. Global用于局部对全局变量的修改。不使用global而直接修改全局变量的值会报错,因为函数不能直接使用外部资源
Variable=a
Def function():
Variable +=1
Function() #报错 function不能直接使用外部资源variable
5. nonlocal用于声明enclosed区域的变量
局部变量:定义在函数内部,作用于整个函数
全局变量:在全局作用域,作用于整个文件
2. 同一变量名,函数内的local变量名与函数外的global变量名互不影响
Variable=a #global#
def function(para1,para2):
Variable = para1+para2 #local#
Return variable #local#
Print(variable) #global#
3. 函数内可使用关键字global 修改局部变量,进而修改全局变量的值
variable=a #global#
def function(para1,para2):
global variable
variable = para1+para2 #local =b
return variable #local#
print(variable) #global =b
4. Global用于局部对全局变量的修改。不使用global而直接修改全局变量的值会报错,因为函数不能直接使用外部资源
Variable=a
Def function():
Variable +=1
Function() #报错 function不能直接使用外部资源variable
5. nonlocal用于声明enclosed区域的变量
《秋風瑟瑟·冷暖自知》李焱 2019 40cmx50cm
"Rustling Autumn Wind, Knowing Cold and Warm by Self " Leann 2019 40cmx50cm
人的飘忽不定,不可思议的虚幻,注定最後要回归自我。随波逐流,对于骄傲有独立性格的人是一种折磨。
———李焱
We are doomed to return to ourselves in the end, a product of erratic humanities and incredible illusions. Following the stream is torture for people of pride and independence.
———Leann
"Rustling Autumn Wind, Knowing Cold and Warm by Self " Leann 2019 40cmx50cm
人的飘忽不定,不可思议的虚幻,注定最後要回归自我。随波逐流,对于骄傲有独立性格的人是一种折磨。
———李焱
We are doomed to return to ourselves in the end, a product of erratic humanities and incredible illusions. Following the stream is torture for people of pride and independence.
———Leann
✋热门推荐