Skip to content

Instantly share code, notes, and snippets.

@jjfajardo
Created February 4, 2012 21:18
Show Gist options
  • Save jjfajardo/1740194 to your computer and use it in GitHub Desktop.
Save jjfajardo/1740194 to your computer and use it in GitHub Desktop.
Un lector simple de lineas escrito en Python.
#!/usr/bin/python
f = open("Total_energy.dat", "r")
# print "set ylabel 'E'"
# print "set xlabel 'r'"
# print "set title 'Energia vs radio'"
for line in f:
line = line[11:15] + "\t" + line[47:58]
print line
# do something with line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment