1、调用函数 调用函数,是调用python内置的函数,这些函数可以直接调用 abs()dict()help()min()setattr()all()dir()hex()next()slice()any()divmod()id()object()sorted()ascii()enumerate()input()oct()staticmethod()bin()eval()int()open()str()bool()exec()isinstance()ord()sum()bytearray()filter()issubclass()pow()super()bytes()float()iter()print()tuple()callable()format()len()property()type()chr()frozenset()list()range()vars()classmethod()getattr()locals()repr()zip()compile()globals()map()reversed()__import__()complex()hasattr()max()round() delattr()hash()memoryview()set() 这些函数可以直接调用 2、定义函数 在python中,定义一个函数需要使用def语句 定义一个比较大小的函数mymax