可以include stdio.h头文件,然后用sprint函数格式化输出,,, 比如你要打印TestValue=10;的值,可以如下: #include “stdio.h” void LCD_Show(void) { char tmp[5]; sprintf(tmp,"%d",TestValue); //在此调用打印tmp数组的LCD底层显示函数即可