如何在Python中连接字符串
1、(4)% 连接字符串:‘name:%s; sex: % (tom, male)

2、python中有很多字符串连接方式,下面给大家总结一下:(1)最原始的字符串连接方式:str1 + str2(2)python 新字符串连接语法:str1, str2(3)奇怪的字符串方式:str1 str2(5)字符串列表连接:str.join(some_list)
阅读量:61
阅读量:49
阅读量:185
阅读量:132
阅读量:192
1、(4)% 连接字符串:‘name:%s; sex: % (tom, male)

2、python中有很多字符串连接方式,下面给大家总结一下:(1)最原始的字符串连接方式:str1 + str2(2)python 新字符串连接语法:str1, str2(3)奇怪的字符串方式:str1 str2(5)字符串列表连接:str.join(some_list)