string转化为int
- 10进制string转化为int;
int('4')
- 16进制string转化为int;
int('12', 16)
int转化为string
- int转化为10进制string;
str(18)
- int转化为16进制string;
hex(18)
参考自杜鲁门的博客:https://blog.youkuaiyun.com/bug_moving/article/details/52885557
int('4')
int('12', 16)
str(18)
hex(18)
参考自杜鲁门的博客:https://blog.youkuaiyun.com/bug_moving/article/details/52885557