我需要将整数的输出填充到给定的长度.
例如,对于4位长度,整数4的输出是"0004"而不是"4".我怎么能在Erlang中这样做?
erlang formatting
erlang ×1
formatting ×1