python *** 作excel,使用xlrd模块,获取某一列数据的语句为

python *** 作excel,使用xlrd模块,获取某一列数据的语句为,第1张

a = [[tablecell(i,ord('A')-ord('A'))value, tablecell(i,ord('B')-ord('A'))value] for i in range(1,nrows)]

with open('d:/atxt','r',encoding='utf-8') as f:

address=[]

n=0

for x in freadlines():

n+=1

if '某' in x:

addressappend('{}行{}列'format(n,xindex('某')+1))

print(address)

strepd1已经是一个列表了。可以直接取值了。

res = strepd9loc[:, strepd1]

print(res)

取某一列,把strepd1改成对应列表即可。

print(strepd9loc[:,'name'])

以上就是关于python *** 作excel,使用xlrd模块,获取某一列数据的语句为全部的内容,包括:python *** 作excel,使用xlrd模块,获取某一列数据的语句为、求一个用python做一个程序,获取纯文字txt中某个文字在文档中的第几行第几列、python 想从strepd9中取出特定的列,列名在strepd的“列名”这一列中,怎么写代码等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/9723756.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-01
下一篇2023-05-01

发表评论

登录后才能评论

评论列表(0条)

    保存