在std中fmt::LowerHex和fmt::UpperHex可以用来输出16进制,分别对应的格式化符号是{:x}、{:X}。 顶部引入std::fmt库: use std::fmt::{self, Formatter, Display, ...
確定! 回上一頁