Created
September 26, 2011 18:16
-
-
Save ecylmz/1242922 to your computer and use it in GitHub Desktop.
csv'den okuma yapıp, düzenleyip yenisine yazan betik [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 | |
#-*- coding:utf-8 -*- | |
import csv | |
first_file = csv.reader(open("/home/ecylmz/Masaüstü/tyl_2011-2012.csv", "rb"),delimiter=";") | |
last_file = csv.writer(open("/home/ecylmz/Masaüstü/tyl_son.csv", "wb"), delimiter = ",") | |
for row in first_file: | |
new_password = row[2][3:8] + row[1] | |
last_file.writerow([new_password, row[1]+ "@ue.omu.edu.tr", row[2], row[3], row[4]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment