📜  元组作为返回值 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:42.044000             🧑  作者: Mango

代码示例1
def f(r):
    """ Return (circumference, area) of a circle of radius r """
    c = 2 * math.pi * r
    a = math.pi * r * r
    return (c, a)