import numpy as np d = np.genfromtxt('Nowcoder.csv', delimiter = ',', dtype=float) PI = np.pi res = np.round(np.sin(d*PI/180),decimals=3) print(res)