【发布时间】:2014-02-25 01:01:11
【问题描述】:
我刚刚开始python。
我想从用户那里获取输入并计算它。
例子:我想通过t =(v sin(theta))/g得到弹丸运动的时间飞行
import math
print "this program will find time flight of projectile motion"
g = 9.8
##get the velocity and angle
##calculate it
##print time with some text
【问题讨论】:
-
请务必查看@axiom 链接中的前两个 答案。它们是完全不同的方法;其中之一可能就是您想要的
-
raw_input() 或 input() 是你的朋友。
标签: python