在程序中重定义printf 包含头文件并定义函数 #include"stdio.h"intfputc(intch,FILE*f){uint8_t temp[1]={ch};HAL_UART_Transmit(&huart4,temp,1,2);//UartHandle???} 1 2 3 4 5 6 7