Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
bload函数用于将字符串数据按照特定的编码规则转换为字节序列,支持自定义的编码基数、对齐、前缀以及步进参数
bload
func bload(data string, base int, align int, prefix string, step int) []byte
func (data string) bload(base int, align int, prefix string, step int) []byte
prefix
"\x00\x01\x02\x03\x04\x0a"
bload(r"\x00\x01\x02\x03\x04\x0a", 16, 2, "\\x", 1)
[0, 1, 2, 3, 4, 10]
"23"
string(23).bload(10, 2, "", 0)
[23]
format
'01234'
'01234'.format(2, '0', "\\x", 1).bload(16, 2, "\\x", 1)
[0, 1, 2, 3, 4]
Was this page helpful?