
# 此示例示意函数的缺省参数
def info(name, age=1, address="不详"):
    print(name, "今年", age, '岁',
    '家庭住址:', address)


info("魏明择", 35, '北京市朝阳区')
info("Tarena", 16)
info("张飞")
info()  # 报错



671485b9e1b09069be7a0fbecee7ac6d62ca1031
<mask token>

def info(name, age=1, address='不详'):
    print(name, '今年', age, '岁', '家庭住址:', address)


<mask token>

def info(name, age=1, address='不详'):
    print(name, '今年', age, '岁', '家庭住址:', address)


info('魏明择', 35, '北京市朝阳区')
info('Tarena', 16)
info('张飞')
info()


# 此示例示意函数的缺省参数
def info(name, age=1, address="不详"):
    print(name, "今年", age, '岁',
    '家庭住址:', address)


info("魏明择", 35, '北京市朝阳区')
info("Tarena", 16)
info("张飞")
info()  # 报错


