d打印ubyte
import std.stdio;
import std.string;
import std.algorithm : until, map;
import std.conv : to;
void main() {
ubyte[8] b = [0x68, 0x65, 0x6C, 0x6C, 0x6F, 0x0A, 0x00, 0x00];
/* "hello\n\0\0" */
writefln("'%-(%s%), world'", b[].until('\n').map!(to!char));
}
浙公网安备 33010602011771号