c2ac9d0831
https://docs.python.org/2/library/stdtypes.html#str.split str.split([sep[, maxsplit]]) If sep is given, consecutive delimiters are not grouped together and are deemed to delimit empty strings. >>> "85563 ----------------C-- /var/lib/libvirt/images".split(' ')[0:2] ['85563', ''] >>> "85563 ----------------C-- /var/lib/libvirt/images".split()[0:2] ['85563', '----------------C--'] |
||
---|---|---|
.. | ||
files | ||
meta | ||
tasks | ||
aliases |