python_30期_第3讲 pandas

Posted Memory.荒年〆

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python_30期_第3讲 pandas 相关的知识,希望对你有一定的参考价值。

import pandas as pd
from class_1210.class_1231 import HttpRequests
#打开excel获取测试所有数据
df = pd.read_excel(‘test_excle.xlsx‘)
test_excle=df.values#嵌套列表的数据
#完成HTTP测试
for item in test_excle:
print("目前执行的用例{0}:{1}".format(item[0],item[1]))
res=HttpRequests.https_request(item[2],eval(item[3]),item[4])
print(‘http执行的结果是{0}‘.format(res))

以上是关于python_30期_第3讲 pandas 的主要内容,如果未能解决你的问题,请参考以下文章

python_30期_第2讲字符串&运算符

python_30期_第2讲字符串&运算符

python_30期os

第420期 Python 周刊

python_30期函数def 函数名():

python_30期函数def 函数名():