python非字符串与字符产链连接

第一种办法:

"hello" +' '+str(110)

  

输出结果:

'hello 110'

 第二种办法:

import numpy
x = 110
print 'hello(%d)'%(x)

  

输出结果:

'hello 110'
原文地址:https://www.cnblogs.com/anyview/p/5585161.html