python中While循环的语法错误

python中While循环的语法错误,python,syntax,while-loop,Python,Syntax,While Loop,我在第一个while循环中遇到语法错误,特别是在“Y”处 While应为小写(While)而应该是小写(While)而应为而在中为(小写为“w”),而Y>=0:行位于脚本末尾。而应为而(小写为“w”)在脚本末尾的While Y>=0:行中。While必须用小写字母“w”编写,否则Python将无法识别它。而必须用小写字母“w”编写,否则Python将无法识别它。哎哟,看起来我被打败了几秒钟。@chown它会更长,除了愚蠢的30个字符,哎呀,看起来我比它快了几秒钟。@chown如果不是愚蠢的30个

我在第一个while循环中遇到语法错误,特别是在“Y”处


While应为小写(
While

而应该是小写(
While

应为
而在
中为
(小写为“w”),而Y>=0:
行位于脚本末尾。

应为
(小写为“w”)在脚本末尾的
While Y>=0:
行中。

While
必须用小写字母“w”编写,否则Python将无法识别它。

必须用小写字母“w”编写,否则Python将无法识别它。

哎哟,看起来我被打败了几秒钟。@chown它会更长,除了愚蠢的30个字符,哎呀,看起来我比它快了几秒钟。@chown如果不是愚蠢的30个字符,它会更长limit@hodofhod这里也一样,7秒=)它会更像20秒之前,除了愚蠢的30个字符limit@hodofhod彼此彼此,7秒=)这会更像20秒之前,除了愚蠢的30个字符的限制
#Calculates trajectory under various angles
from math import*
from Density import*
from Fdrag import*
from pylab import title, xlabel, ylabel, show, plot, legend

#constants
rho0=1.2            #standard density of air at ground (kg/m^3)
g=9.81              #acceleration due to gravity (m/s/s)
T0=288.15           #ground temperature
D=0.1               #diameter (m)
A=pi*D^2/4          #Area
m=4                 #mass (kg)

for theta in (25, 50, 75):  #range of trajectories
    #initial conditions
    V=2800                  #velocity m/s
    Vx=V*cos(theta)         #horizontal velocity component
    Vy=V*sin(theta)         #vertical velocity component
    t=0                     #time
    dt=0.01                #time step (s)
    X=0                     #position
    Y=0.0                     #position
    x=[0]                    #position list (x component)
    y=[0]                    #position list (y component)
    vx=[Vx]                   #velocity list (x component)
    vy=[Vy]                   #velocity list (y component)
    T=[]                    #time list
    peaked=0                #use peakes as flag

    While Y>=0:
Then the rest of my code