The method of the inverted output string will python

1, using the index string methods:

Output:

 

2, flip borrow list

Output:

 

Which seb.join (str) function is a particularly useful function, str either string can also be a list, seb it is you want to add in the middle str character, but whether or str is a list of strings returns a string.

result:

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/Ycc-LearningRate/p/11409176.html