가인 정신건강의학과

메뉴 닫기

tasting room https://xn--ob0br6vu8jdlj.com ^newtown town council news …

페이지 정보

profile_image
작성자 Patty
댓글 0건 조회 22회 작성일 25-06-04 14:39

본문

import pandas as pd
import random
import time
import xml
#读取article.xls文件内容,将内容放入article列表中


data = pd.read_excel('article.xls')
article = data.values.tolist()
print(article)
#遍历article列表
print(len(article))
#将article列表中的内容 一个元素放入一个txt文件中


for i in range(len(article)):
with open(f'i.txt', 'w', encoding='utf-8') as f:
f.write(article[i][0])
time.sleep(1)
print(f'第i个文件写入成功')



In the event you loved this short article and you would want to receive more details about 링크모음 사이트 웹사이트 please visit our own site.

댓글목록

등록된 댓글이 없습니다.