def show_results_plot(self):
pl.figure(1)
pl.plot(self.x, self.y,label = "firing angle = %.1f °"%self.theta)
pl.draw()
pl.legend(loc='upper right', shadow=True, fontsize='small')
print("\ninitial velocity:", _input.initial_velocity, "m/s")
print("time step:", _input.time_step, "s")
print("firing angle:", self.theta, "°")
print("falling fange:%.4f km"%self.x[-1], "\n")
#Users input the initial values
5(improved) code.py 文件源码
python
阅读 30
收藏 0
点赞 0
评论 0
评论列表
文章目录