string.space([n[,pad]]) Splits words in string with n padcharacters between them "one two three".space(3) returns "one two three"
space([n[,pad]]) 分隔字符串中的单词,并在单词之间填充 n 个字符 "one two three".space(3) 返回 "one two three"
2
Because this result is held in an integer variable, a message to display the value should use a formatting code to pad to four characters with leading zeros for codes that are numbered less than 1000.
I use a block cipher algorithm for encryption that requires the clear data bytes to be in blocks of 8 bytes, so I pad the last incomplete block with some characters.