Several methods of connecting text with python text connector
Python version: 3.5.2
I +No. connection
print(text[0] + text[1] + text[2])
heyheyfuckworld
If memory space is not considered, it is useless. The amount of data is huge, memory operations are frequent, and it is cumbersome to catch up with
II Space Connector
print(text[0] text[1] text[2])
heyheyfuckworld
I don't know why, Can be connected with and without spaces #Laughing and crying, is it exclusive to python?
III Placeholder Connection
print("%s%s%s" % (text[0], text[1], text[2]))
heyheyfuckworld
IV Join function connection
#T is the character between the strings to be concatenated t = '-' print(t.join(text))
heyhey-fuck-world
V *No. connection
str = 'abc' str * 2
abcabc
In any case, I don't think there are any eggs in the store. Now I can't use it. Ha ha