python练习-数值比较

2017-01-10 08:21:05来源:作者:人点击

num1=float(raw_input("enter the number1:"))num2=float(raw_input("enter the number2:")) if num1 < num2: print num1,"is less than",num2if num1 > num2: print num1,"is greater than",num2 if num1 == num2: print num1,"is equal to",num2 if num1 != num2: print num1,"is not equal to",num2
result


最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台