对操作数感到困惑

时间:2019-11-30 14:39:06

标签: python

我想让我的程序执行这个基本公式,但是我无法使其运行。 有人可以帮我看看为什么无法运行的问题吗?

Num = print('How many days?')
Gross = int(Num) * 4
print( "The amount of days is," , Gross)

1 个答案:

答案 0 :(得分:0)

您需要使用input而不是print

Num = input('How many days?')
Gross = int(Num) * 4
print( "The amount of days is," , Gross)

输出(执行示例)

How many days?10
The amount of days is, 40