一、%s拼接
print('%s world %s' % (hello,python))
==>hello world python
%s表示字符串一个占位符,拼接的内容在单独的%的后面,多个拼接的字符串用逗号隔开
类似占位符有 %d 代表一个整数 、%f 代表一个浮点数 、%x 代表一个16进制数

二、format() 拼接
print('{} world {}'.format('world','python'))
==>hello world python
这种方式使用{}作为占位符,在format方法中转入实际的拼接值与%类似

三、+号拼接
print('hello'+'world'+'python')
==>hello world python
这种拼接适用于写死字符串如果是动态的数值则会进行+运算