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));
}
d打印ubyte
原创
©著作权归作者所有:来自51CTO博客作者fqbqrr的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:c++与d的函数为模板参数
下一篇:js不管用了,可能是未加载.
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Python读取hive Python读取pdf
从pdf中提取文字,相信很多人都干过这事,怎么在python中实现呢,今天带大家看看。第一步导入库import PyPDF2第二步导入pdf文件pdf_file =open('dataset/laban.1027.pdf', 'rb')第三步读取pdf并检查加密情况read_pdf = PyPDF2.PdfFileReader(pdf_file)read_pdf.getIsEncrypted()r
Python读取hive pdf exe如何提取pdf文件 python 代码换行 python 读log文件提取数组 python中可以用角度吗