Created
February 4, 2012 21:18
Un lector simple de lineas escrito en Python.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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