难以理解为什么我在高中教这个"快速数学"公式似乎不能正常工作.
前提是按小时工资,加倍并增加三个零,如果你全年工作50周,结果大致相当于你的年薪.
# Preface
print '---> Want to know your yearly salary? <---'.upper()
# Question
money = raw_input("How much money do you earn per hour?")
# Math Work
mult = money * 2
result = mult + str(000)
# Answer
print "you make roughly $%r per year, Working full-time for 50 weeks out of the year" % result
Run Code Online (Sandbox Code Playgroud)
结果: 我的结果看起来像这样:"你每年赚大约10100美元,全年工作50周"
我的表情一定是犯了错误......简单地说,我只是不知道