常规的拼接方式是使用+,比如:
+
s1 = 'hello' s2 = 'world' print('s1,s2地址', id(s1)) s1 += s2 print(s1) print('拼接后的地址
京公网安备 11010502049817号