python学习三十八天常用内置函数分类汇总

    python给我们提供丰富的内置函数,不用去写函数体,直接调用就可以运行,很方便快速给我提供开发所需要的函数。

1,查内存地址 id()

     变量的内存地址 id()

2,输入输出

  input()  print()

3,查看数据类型

   type()

4,数据类型转换

  bin() int()  float() format() chr()  str()  bool() tuple()  list()  dict()  eval() hex() oct()  range() round() unichr()  unicode() hash() 

5, 处理多个数据的关系函数

  abs()  all()   min()  max()  len()  long()  sum()   pow()

6,文件操作的函数

  dir()  file()   open()  zip()

文章来自 http://www.96net.com.cn

猜你喜欢

转载自www.cnblogs.com/96net/p/9655950.html