Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 2nd, 2011  |  syntax: None  |  size: 0.25 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. >>> gprmc = "$GPRMC,1244.0,A,3111.334505,N,90729.3111898,W,1.2,,020811,,,A*55"
  2. >>> reader = csv.reader(gprmc)
  3. >>>
  4. >>> for row in reader:
  5.         if row and row[0].strip() == '$GPRMC':
  6.                 for val in row:
  7.                         print val
  8.                 print "__________________"
  9. >>>
  10. >>>
  11. >>>