Construct lists from other lists. : System Cmd Mount « System « Python
- Python
- System
- System Cmd Mount
Construct lists from other lists.

import commands
lines = commands.getoutput('mount -v').split('\n')
points = [line.split()[2] for line in lines]
print points
Related examples in the same category