join 方法用于连接字符串数组
输出结果:
abcd
a-b-c-d
使用 % 连接多个变量
输出结果:
hello python 1 ['a', 'b', 'c', 'd']
Python 天天美味系列(总)
Python 天天美味(5) - ljust rjust centerPython 天天美味(6) - strip lstrip rstrip
Python 天天美味(7) - 连接字符串(join %)
...
hello python 1 ['a', 'b', 'c', 'd']
Python 天天美味(6) - strip lstrip rstrip
Python 天天美味(7) - 连接字符串(join %)
...
相关文章: