标签:pytho 类型 str 连接 bytes pre 转换 print str1
直接看例子:n = 888
print bytes(n)+str1
print str(n)+str1
print type(n)
n = bytes(n)
print type(n)
n = str(n)
print type(n)
查看结果
8881234567
8881234567
<type ‘int‘>
<type ‘str‘>
<type ‘str‘>
python 字符串 类型互相转换 str bytes 字符串连接
标签:pytho 类型 str 连接 bytes pre 转换 print str1
原文地址:http://blog.51cto.com/weiruoyu/2334578