ALINCO Clone UtilityのCSVインポート機能は「"」が一番右の行についているとその列を無視してしまうので、すべてのセルから「"」を削除する。あと改行コードもWindowsに合わせる
This file contains 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
import os.path | |
filename = input('CSV filename: ') | |
data = open(filename).readlines() | |
name, ext = os.path.splitext(filename) | |
out = open(name+'_ok'+ext, 'w') | |
outdata = '' | |
for row in data: | |
outrow = row.replace('\n','').replace('\r','').replace('\'','').replace('"','') | |
outdata += outrow+'\r\n' | |
out.write(outdata) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment