one=float(input("请输入第一个数:"))
two=float(input("请输入第二个数:"))
three=max(one,two)
print=input("输入的二个数中大数是:%f"%three)
関数maxを使用して2つの整数を順番に入力し、より大きな数のヒントを出力します:max(m、n)、2つの数値のうち大きい方を返します
おすすめ
転載: blog.csdn.net/weixin_46520272/article/details/105445091
おすすめ
ランキング