5.5 函数的参数练习案例

案例

def say_hi(x):
    print("欢迎,请出示信息,请测温")
    if x > 37.5:
        print(f"体温{x},退!退!退!")
    else:
        print(f"体温{x},欢迎")


say_hi(36)

say_hi(37.6)

Last updated

Was this helpful?