An automatic driving track obtaining method, the method being performed by a processor, the method comprising: obtaining (S101) a driving style coefficient of a driver of a vehicle A; obtaining a cost function of the driver of the vehicle A through calculation based on the driving style coefficient of the driver of the vehicle A, wherein the cost function is used to represent costs paid when the vehicle A travels from an initial node to a current node in an automatic driving track of the vehicle A, the current node is after the initial node; wherein the cost function is a function constructed based on at least one of a safety item S, a comfort item C, a compliance item R, and an efficiency item T, wherein the safety item S, the comfort item C, the compliance item R, and the efficiency item T are driving habit parameters of the driver of the vehicle A, the safety item S is used to represent a vehicle following habit of the vehicle A and a safe distance between the vehicle A and a surrounding obstacle, the comfort item C is used to represent a velocity change degree and an acceleration change degree of the vehicle A, the compliance item R is used to represent whether the vehicle A complies with traffic regulations, and the efficiency item T is used to represent a destination arrival time, braking and steering priorities for obstacle avoidance, and overtaking behavior and yielding behavior generated in a process in which the vehicle A and a surrounding vehicle of the vehicle A travel; and obtaining (S103) the automatic driving track of the vehicle A on a first three-dimensional spatial-temporal map through calculation according to the cost function. obtaining (S101) a driving style coefficient of a driver of a vehicle A; obtaining a cost function of the driver of the vehicle A through calculation based on the driving style coefficient of the driver of the vehicle A, wherein the cost function is used to represent costs paid when the vehicle A travels from an initial node to a current node in an automatic driving track of the vehicle A, the current node is after the initial node; wherein the cost function is a function constructed based on at least one of a safety item S, a comfort item C, a compliance item R, and an efficiency item T, wherein the safety item S, the comfort item C, the compliance item R, and the efficiency item T are driving habit parameters of the driver of the vehicle A, the safety item S is used to represent a vehicle following habit of the vehicle A and a safe distance between the vehicle A and a surrounding obstacle, the comfort item C is used to represent a velocity change degree and an acceleration change degree of the vehicle A, the compliance item R is used to represent whether the vehicle A complies with traffic regulations, and the efficiency item T is used to represent a destination arrival time, braking and steering priorities for obstacle avoidance, and overtaking behavior and yielding behavior generated in a process in which the vehicle A and a surrounding vehicle of the vehicle A travel; and obtaining (S103) the automatic driving track of the vehicle A on a first three-dimensional spatial-temporal map through calculation according to the cost function. <EOS>