直接看例子:
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'>
直接看例子:
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'>