你的程序里面定义了21个共阴数码管显示字段数据table,右侧给你注释了每个数代表的一个要显示的字符:
uchar code table[]={
0x3f,0x06,0x5b,0x4f, //"0","1","2","3"
0x66,0x6d,0x7d,0x07, //"4","5","6',"7"
0x7f,0x6f,0x77,0x7c, //"8","9","a","b"
0x39,0x5e,0x79,0x71, //"c","d","e","f"
0x76,0x79,0x38,0x3f,0}; //"h","e","l","o"," "
display(16,17,18,18,19,20)就是给数码管送数据0x76,0x79,0x38,0x38,0x3f,0 也就是让数码管显示"h","e","l","l","o"," " |