Skip to main content

函数原型

func decToHex(n int) string

参数介绍

返回值

举例

下表展示了 decToHex 函数如何将不同的十进制整数转换为十六进制字符串: