📜  java 到 python 的转换 - Python 代码示例

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

代码示例2
hrs = input("Enter Hours:")
h = float(hrs)
rph=float(input("Enter rate per hours:"))
if hrs>40:
    print (40*rph +(h-40)*rph*1.5)
else:
    print(h*rph)