import numpy as n import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure(figsize=(6,6)) ax = fig.gca(projection='3d') [x,t] = n.meshgrid(n.array(range(25))/24.0,n.arange(0,575.5,0.5)/575*20*n.pi+4*n.pi) p = (n.pi/2)*n.exp(-t/(8*n.pi)) change = n.sin(15*t)/150 u = 1-(1-n.mod(3.3*t,2*n.pi)/n.pi)**4/2+change y = 2*(x**2-x)**2*n.sin(p) r = u*(x*n.sin(p)+y*n.cos(p)) h = u*(x*n.cos(p)-y*n.sin(p)) c =plt.get_cmap('Blues') surf = ax.plot_surface(r*n.cos(t),r*n.sin(t),h,rstride=1,cstride=1,cmap=c,linewidth=0,antialiased=True) ax.set_xticks([]) ax.set_yticks([]) ax.set_zticks([]) plt.show()
File "D:\pythonProject\xin.py", line 6
[x,t] =
^
SyntaxError: invalid syntax
这个怎么补,材料来源于网上