python - Splitting a list -
I pressed different resources and could not understand how to do a simple operation.
Now, I have the following types of list:
li = [['a = b'], ['c = d']]
I want to change it as: li = [['a', 'b'], ['c', 'd']]
As I understand, the
partition ("=")
only applies to string types.
- DAN
Comments
Post a Comment