670
說明:
|
← 2017-12-30 23:40:24 修訂第 22 版 ⇥
721
|
這個顏色代表刪除的 | 這個顏色代表增加的 |
行號 1: | 行號 1: |
## page was renamed from JobOpening If you want to recruit Python programming, please post your job offering as below as a link to a new page. You may also use the JobBulletinTemplate. Listings: * 11/11/2013 [[Cloud Operations Engineer]] * 03/02/2012 [[PythonEngineerAtTgc-Taiwan|Python 系統程式工程師]] * 03/21/2011 [[CanonicalHWCertificationEngineer|Hardware Certification Engineer at Canonical]] * 02/22/2010 CoginiWebDeveloper * 09/02/2009 [[Python Web Game Programmer]] * 22/10/2008 [[Web Software Engineer for Taiwan Social Welfare Platform]] * 23/10/2008 [[Contract Python Programmer]] * 04/09/2007 PhalanxBiotechPythonProgrammerJob |
import re as re data = [] file = open ("C:\\users\\alex\\downloads\\ScoreData.csv",'r') c = file.readline() modified = open ("C:\\users\\alex\\downloads\\ScoreDataModed.csv",'w') modified.writelines(c) for i in range (1,99): temp = "" c = file.readline() c = c.split(",") for vector in c: if (vector!="CSIE"): vector = re.match('\d+|.\d+|n',vector) vector = vector.group() data.append(vector) else: data.append("CSIE") for k in range (19): temp += data[k] if (k!=18): temp += "," else: temp += "\n" modified.writelines(temp) modified.close() file.close() |
import re as re data = [] file = open ("C:\\users\\alex\\downloads\\ScoreData.csv",'r') c = file.readline() modified = open ("C:\\users\\alex\\downloads\\ScoreDataModed.csv",'w') modified.writelines(c) for i in range (1,99):
- temp = "" c = file.readline() c = c.split(",") for vector in c:
- if (vector!="CSIE"):
- vector = re.match('\d+|.\d+|n',vector) vector = vector.group() data.append(vector)
- data.append("CSIE")
- temp += data[k] if (k!=18):
- temp += ","
- temp += "\n"
- if (vector!="CSIE"):
modified.close() file.close()