Menu



Manage

Cord > Study_Python 전체 다운로드
Study_Python > make/2Show.py Lines 21 | 571 바이트
다운로드

                        #test02.py
import info

f = open(info.basefullfile, 'r')

#allstr = f.read()
#print(type(allstr))
#print(allstr)

#lines = f.readlines() #짧은 라인이면 추천 1만라인 이상이면 10만개 이상이면 램 터짐
##print(lines)
#for line in lines :
#    print(line.strip())

#while True :        #못읽을때까지 뺑뺑이 (몇줄인지 모름)
#    line = f.readline()        #파일 커서가 한줄 읽고 밑에 파일 커서가 내려옴 & 빈 문자열 읽힐 때
#    if not line :
#        break
#    print(line.strip())

f.close()