Python基础共75篇 第8页
Python reduce / map / filter 函数区别-猿说编程

Python reduce / map / filter 函数区别

Python reduce / map / filter 函数区别 - Python 中 reduce / map / filter 三个函数很容易搞混淆,虽然利用函数对迭代器或者序列中的元素操作,但是适用的场景却各不相同; map 函数特点:对...
Python chr / ord 函数区别和使用-猿说编程

Python chr / ord 函数区别和使用

Python chr/ord函数区别和使用 - Python 中 内置函数 chr 和 内置函数 ord 可以配对使用;chr 函数将 ascll 码转为字符;ord 函数将字符转为 ascll 码;
Python super 函数-猿说编程

Python super 函数

Python super 函数 - Python 内置函数 super 主要用于类的多继承中,用来查找并调用父类的方法,所以在单重继承中用不用 super 都没关系;但是,使用 super 是一个好的习惯。一般我们在子类中需...
猿说编程的头像-猿说编程钻石会员猿说编程3年前
09901
Python filter 函数-猿说编程

Python filter 函数

Python filter 函数 - filter 函数主要用来筛选数据,过滤掉不符合条件的元素,并返回一个迭代器对象,如果要转换为列表 list 或者元祖 tuple ,可以使用内置函数 list 或者内置函数 tuple 来转...
猿说编程的头像-猿说编程钻石会员猿说编程3年前
09282
Python raw_input 函数-猿说编程

Python raw_input 函数

Python raw_input 函数 - Python 3.x 版本中并没有内置函数 raw_input,如果在 Python 3.x 版本中使用内置函数 raw_input,会提示:NameError: name ‘raw_input’ is not defined input 返回的...
猿说编程的头像-猿说编程钻石会员猿说编程3年前
08982