码迷,mamicode.com
首页 > 编程语言 > 详细

python:practice renderer

时间:2020-03-15 13:16:22      阅读:65      评论:0      收藏:0      [点我收藏+]

标签:ice   lob   print   inner   call   erer   practice   oba   outer   

function domain:

L ocal

E nclosing

Global

Built-in

instance:

def  outer():

    x=10

    def inner():

       print(x)

    return inner

call inner method  

1:print (outer()())

1: a=outer()

print(a())

 

python:practice renderer

标签:ice   lob   print   inner   call   erer   practice   oba   outer   

原文地址:https://www.cnblogs.com/alansuny/p/12496963.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!