检查是否应用了android补丁

时间:2019-01-01 07:01:44

标签: android git patch

我们通常使用git am或git apply来应用补丁,有时补丁文件太多,所以我想使用shell脚本来应用所有补丁,但是我们如何检查它是否被Script( python或shell)

{{1}}

1 个答案:

答案 0 :(得分:0)

您可以尝试import matplotlib.pyplot as plt import numpy as np V_initial = 30 # m/s theta = np.pi/6 # 30 g = 3.711 m =1 C = 0.47 r = 0.5 S = np.pi*pow(r, 2) ro_mars = 0.0175 t_flight = 2*(V_initial*np.sin(theta)/g) t = np.linspace(0, t_flight, 200) # Drag force Ft = 0.5*C*S*ro_mars*pow(V_initial, 2) # Buoyant Force Fb = ro_mars*g*(4/3*np.pi*pow(r, 3)) x_loc = [] y_loc = [] for time in t: x = V_initial*time*np.cos(theta) y = V_initial*time*np.sin(theta) - (1/2)*g*pow(time, 2) x_loc.append(x) y_loc.append(y) x_vel = [] y_vel = [] for time in t: vx = V_initial*np.cos(theta) vy = V_initial*np.sin(theta) - g*time x_vel.append(vx) y_vel.append(vy) v_ch = [pow(i**2+ii**2, 0.5) for i in x_vel for ii in y_vel] tau = [] for velocity in v_ch: Ft = 0.5*C*S*ro_mars*pow(velocity, 2) tau.append(Ft) buoy = [] for velocity in v_ch: Fb = ro_mars*g*(4/3*np.pi*pow(r, 3)) buoy.append(Fb) ,它将仅显示错误消息。因此,读取输出以检查其是否适用于脚本。