循环,从a到z,然后分别按照%d和%c输出就可以了。 以上指C语言。

int main(){ char c for(c = 'a' c<='z'c++) printf("%d:%cn",c,c) return 0}