如何用printf打印已知长度但是没有0结尾的字符串?rt[解决办法]printf可以解決的,只是你不知道而已 printf( "%.*s\n ", 10, "abcdefghijklmnopq ") ;