使用 <math.h>中M_PI,需要包含头文件<math.h>,和#define _USE_MATH_DEFINES。并且#define _USE_MATH_DEFINES 一定要放在 #include <math.h>的前面。