hex函数主要是用来将所给字符串或者字节数组进行十六进制编码,并输出编码后的字符串
hex
func hex(s1 string) string
func hex(b1 bytes) string
s1/b1
"asdf"
hex("asdf")
61736466
b"asdf"
hex(b"asdf")
Was this page helpful?