2019-08-27 python-split

Example: split() command

%reset
y = "abc $45 81"
print(y.split()) # Delimiter is whitespace

y = "abc,fgh,81"
print(y.split(",")) # Delimiter is coma
print(y)

y = "5454-8070-1234"
print(y.split("-"))  # Delimiter is dash

你可能感兴趣的:(2019-08-27 python-split)