Python连接字符串

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_41819299/article/details/82533717
print('y', end='')
print('j')
print('####')
print('y'+'j')
print('####')
print('{}{}yj'.format('y','j'))
print('####')
a=['y','j']
print(''.join(a))

连接字符串可以用1)+ 2)format 3)join 4)end

连接地址习惯用format

猜你喜欢

转载自blog.csdn.net/weixin_41819299/article/details/82533717
今日推荐