代码Demo

import (
	"fmt"
	"strconv"
	"testing"
)

func Test_1(t *testing.T) {
	s:= "0e"
	if parseUint, err := strconv.ParseUint(s, 16, 32);err != nil {
		panic(err)
	}else{
		fmt.Println(parseUint)
	}
}

打印

=== RUN   Test_1
14
--- PASS: Test_1 (0.00s)
PASS

Process finished with exit code 0

相关文章:

  • 2022-01-09
  • 2021-12-14
  • 2021-12-01
  • 2021-09-25
  • 2022-12-23
猜你喜欢
  • 2021-12-14
  • 2021-12-14
  • 2021-12-14
  • 2021-12-14
  • 2021-12-14
  • 2021-11-26
  • 2022-12-23
相关资源
相似解决方案