hausaufgabe--python 20-Closure functions 2

000-- to calculate specific letters in a stringhtml

 

 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------spa

 There is error for above codes .net

Reffered:the path to open a file: http://www.cnblogs.com/xubing-613/p/6260346.html3d

to statistic the specific in the string: http://blog.csdn.net/granton/article/details/38664579code

 

Standar answer: -_-|| so short......htm

 

 

 

001-- to change the global value in the closure function, use " global "blog

 

 

 002-- to change the same varial in another function, use "nonlocal"ci

 

 

003-- nested functions:string

 

 

 

updated to :it

 

 

004-- to access the inner functions

 

 

 

 

005 -- define a function, to find the small case letter which have 3 upper letter before and after it. 

 

 

 

 

running result:

相關文章
相關標籤/搜索