zoukankan      html  css  js  c++  java
  • 调用函数

    函数

    函数名实质上就是一个指向函数对象的一个引用,完全可以将函数名赋值给另一个名字,给函数起一个别名。 每个函数有不同的参数类型,参数个数。

    i_am_abs = abs
    i_am_abs(-10)
    >>10
    

    内置函数:
    abs():return the absolutely value of a number
    int(): turn the other type of data into a integer
    max():return the maximum of a list of number
    sum(): return the sum of a list of number
    float(): accep a string and return a float
    str(): accept a not string data type and return a string

  • 相关阅读:
    ccc pool
    ccc 模拟重力 正太分布
    ccc 正态分布
    ccc this 指针
    基本语法HelloWorld
    css选择器
    css基本语法
    表单
    表格
    超链接
  • 原文地址:https://www.cnblogs.com/zhuobo/p/10242993.html
Copyright © 2011-2022 走看看