python多分隔符
2024-02-15 17:10:29
```python
s = "apple, banana, cherry tomato"
fruits = s.split(", ")
print(fruits)
```
`['apple', 'banana', 'cherry tomato']`。
```python
s = "apple, banana, cherry tomato"
fruits = s.split(", ")
print(fruits)
```
`['apple', 'banana', 'cherry tomato']`。