資源簡介
python 實現將TXT文件內容逐行存到EXCEL,簡單易懂,適合初學者
代碼片段和文件信息
#?-*-?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
#------------逐個讀取文本(有多個文本)存在excel中--------------
for?cnt?in?range(121):
????
#------------讀取要存放的數據---------------
評論
共有 條評論