zoukankan      html  css  js  c++  java
  • hausaufgabe--python 20-Closure functions 2

    000-- to calculate specific letters in a string

     --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

     There is error for above codes 

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

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

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

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

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

    003-- nested functions:

    updated to :

    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:

  • 相关阅读:
    linux-log-files/
    SSL SSH
    C++学习的书籍
    Linux IO 分析
    LINUX 常用操作
    Find Large Files in Linux
    Linux 常见操作
    Linux Performance tool
    /linux-command-line-bash-shortcut-keys/
    Sed
  • 原文地址:https://www.cnblogs.com/Shareishappy/p/7058272.html
Copyright © 2011-2022 走看看