In turn string list python

 

Command:. '' Join (list)

Wherein the delimiter between the quotation marks are characters, such as ",", ";", "\ t", etc.

Such as:

list = ["1", "2", "3", "4", "5"]

'' .Join (list) is the result: 12345

. ',' Join (list) is the result: 1,2,3,4,5

# Pit: list of data types must be inside of str, int not.

Command:. '' Join (list)

Wherein the delimiter between the quotation marks are characters, such as ",", ";", "\ t", etc.

Such as:

list = ["1", "2", "3", "4", "5"]

'' .Join (list) is the result: 12345

. ',' Join (list) is the result: 1,2,3,4,5

# Pit: list of data types must be inside of str, int not.

Guess you like

Origin www.cnblogs.com/zzllovehappy/p/10945134.html