Classify articles in Python

Python version: 3.5.2

Suppose the following is the string we want to connect

 String to be connected

I +No. connection

Yes js You should know

 print(text[0] + text[1] + text[2])

output

 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])

output

 heyheyfuckworld
I don't know why, Can be connected with and without spaces #Laughing and crying, is it exclusive to python?

III Placeholder Connection

Don't tell anyone who doesn't know C language printf("%s","str");

 print("%s%s%s" % (text[0], text[1], text[2]))

output

 heyheyfuckworld

IV Join function connection

In fact, what you recommend is the best join() efficient

 #T is the character between the strings to be concatenated t = '-' print(t.join(text))

output

 heyhey-fuck-world

V *No. connection

Use this to find a place

 str = 'abc' str * 2

output

 abcabc
In any case, I don't think there are any eggs in the store. Now I can't use it. Ha ha