已知程序1绘制的图形如下图所示,要绘制相同的图形,请补全程序2空白?( )
程序1:
import matplotlib.pyplot as p import numpy as np x= np.array([0,1,0,1,0,1,0]) p.plot(x,'o:r') p.show()
程序2:
import matplotlib.pyplot as p import numpy as np x= np.array([3,4,3,____,3,4,3]) p.plot(x,'o:r') p.show()
1
2
3
4