Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. 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'
  2.  
  3. In [3]: lista = frase.split(" ")
  4.  
  5. In [4]: lista
  6. Out[4]:
  7. ['sd1',
  8. 'Soft',
  9. 'Errors:',
  10. '0',
  11. 'Hard',
  12. 'Errors:',
  13. '0',
  14. 'Transport',
  15. 'Errors:',
  16. '0',
  17. 'Vendor:',
  18. 'SEAGATE',
  19. '',
  20. 'Product:',
  21. 'ST373307LSUN72G',
  22. '',
  23. 'Revision:',
  24. '0507',
  25. 'Serial',
  26. 'No:',
  27. '3HZ9JBYN000',
  28. '07518',
  29. 'Size:',
  30. '73.40GB',
  31. '"73400057856',
  32. 'bytes"',
  33. 'Media',
  34. 'Error:',
  35. '0',
  36. 'Device',
  37. 'Not',
  38. 'Ready:',
  39. '0',
  40. 'No',
  41. 'Device:',
  42. '0',
  43. 'Recoverable:',
  44. '0',
  45. 'Illegal',
  46. 'Request:',
  47. '0',
  48. 'Predictive',
  49. 'Failure',
  50. 'Analysis:',
  51. '0']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement