資源簡(jiǎn)介
python 實(shí)現(xiàn)將TXT文件內(nèi)容逐行存到EXCEL,簡(jiǎn)單易懂,適合初學(xué)者
代碼片段和文件信息
#?-*-?coding:?utf-8?-*-?
import?os
import?urllib2???????
import?re????
import?thread????
import?time
from?xlutils.copy?import?copy
from?xlrd?import?open_workbook
from?xlwt?import?easyxf
import?xlwt
excel=‘C://Users//Desktop//b.xls‘
column=0
row=0
cnt=0
#------------逐個(gè)讀取文本(有多個(gè)文本)存在excel中--------------
for?cnt?in?range(121):
????
#------------讀取要存放的數(shù)據(jù)---------------
評(píng)論
共有 條評(píng)論