Skip to content

Instantly share code, notes, and snippets.

@ecylmz
Created September 26, 2011 18:16
Show Gist options
  • Save ecylmz/1242922 to your computer and use it in GitHub Desktop.
Save ecylmz/1242922 to your computer and use it in GitHub Desktop.
csv'den okuma yapıp, düzenleyip yenisine yazan betik [python]
#!/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