摘要:
> python --versionPython 3.7.1In [1]: class People(object): ...: pass ...:In [2]: dir(People)Out[2]:['__class__', # 实例所... 阅读全文
摘要:
一些重要的内置函数函数描述abs(number)返回数字的绝对值all(iterable)如果iterable的所有元素都为真值, 就返回True; 否则返回Falseany(iterable)如果iterable的所有元素都为假值, 就返回False; 否... 阅读全文
摘要:
话不多说,代码呈上:#!/usr/bin/env python# -*- coding: utf-8 -*-# @Time : 2019/2/26 13:02# @Author : One Fine__author__ = "One Fine"# @... 阅读全文