close
python 內的print 會自動換行
再後面加上 , 就不會了。
 
#!  ~/bin/python/bin/python
file=open('text.txt');
while 1:
    lines=file.readline()
    if not lines:
        break
    print lines,
    #for line in lines:
    #    print line
arrow
arrow
    全站熱搜

    peicheng 發表在 痞客邦 留言(0) 人氣()