Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In [2]: frase = 'sd1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: SEAGATE Product: ST373307LSUN72G Revision: 0507 Serial No: 3HZ9JBYN000 07518 Size: 73.40GB "73400057856 bytes" Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0'
- In [3]: lista = frase.split(" ")
- In [4]: lista
- Out[4]:
- ['sd1',
- 'Soft',
- 'Errors:',
- '0',
- 'Hard',
- 'Errors:',
- '0',
- 'Transport',
- 'Errors:',
- '0',
- 'Vendor:',
- 'SEAGATE',
- '',
- 'Product:',
- 'ST373307LSUN72G',
- '',
- 'Revision:',
- '0507',
- 'Serial',
- 'No:',
- '3HZ9JBYN000',
- '07518',
- 'Size:',
- '73.40GB',
- '"73400057856',
- 'bytes"',
- 'Media',
- 'Error:',
- '0',
- 'Device',
- 'Not',
- 'Ready:',
- '0',
- 'No',
- 'Device:',
- '0',
- 'Recoverable:',
- '0',
- 'Illegal',
- 'Request:',
- '0',
- 'Predictive',
- 'Failure',
- 'Analysis:',
- '0']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement