snippet1 Frequently used(referred) Python code 개인적으로 자주 쓰거나 참조하는 Python Code 를 정리해 보았다.Fileread lines with line separator1234fpin = open(inputFile) for fline in fpin: print 'line text with newline : ', fline read lines without line separator12345fpin = open(inputFile)flines = fpin.splitlines() for fline in fpin: print 'line text without newline : ', flineFile path concatenation123456outDir = 'testDir'outUserName = 'test1'outFile = 'testFile... 2013. 5. 24. 이전 1 다음