zoukankan      html  css  js  c++  java
  • hausaufgabe--python 19- Functions 2

    000-- define a function to check if a string is a symmatrical string

    running result:

    referred :

    how to reverse a string: 

    http://www.jb51.net/article/15700.htm

    001--  define a function to count the passed parameters's amount of letters, digits, spaces, and other symbols 

    count('I love DuoKai.reedy', 'I love you because who I am while I with you. wish we are the best1314.!@#$')

    running result:

    002-- functions in python 

    in python, all the functions have something for return even there is no 'return' request in the code. the type for the non return function is 'None'

    004-- you can return almost all the types for the functions .  By default, you need to put them in the tupple with ' , ' to separate them. 

    005-- Do not use too much global values when it's not mandatory 

  • 相关阅读:
    NSThread 多线程 三种方式
    CABasicAnimation 核心动画
    图片圆角属性
    GCD
    IOS 推送
    IOS 截图
    UIImage 截图
    UIImageView 动画
    AFN 判断网络状态
    Template 模式
  • 原文地址:https://www.cnblogs.com/Shareishappy/p/7041648.html
Copyright © 2011-2022 走看看