python字符串连接的方法,一般有以下三种:方法1:直接通过加号(+)操作符连接: 效率比较低。 str = 'python' + '.com'方法2:join方法:多字符串连接效率高 list_str = ['python','.com'] str = ''.join(list_str)方法3:替换: 字符串格式化 str = '%s%s' % ('python', .com')