1 int 与 string转换
1.1 string–>int
10进制string转化为int
int(‘12’)
16进制string转化为int
int(‘12’, 16)
1.2 int–>string
int转化为10进制string
str(18)
int转化为16进制string
hex(18)
a = 5
stra = str(a)
hexa=hex(a)
print(stra)
print(hexa)
print(a)
2 numpy类型
参见这里:https://blog.csdn.net/Tireless_Yan/article/details/128401442
3 Tensor类型
参考这里:https://zhuanlan.zhihu.com/p/359885322
升维与降维:https://blog.csdn.net/m0_72965654/article/details/127174152
4 *用法
这里由各总结,挺好的“
https://blog.csdn.net/jiangkejkl/article/details/121346940