Files
to_session/读取文件/读取excl文件.py
Administrator a0720d80dc fefdwef
2025-11-12 12:54:37 +08:00

21 lines
450 B
Python

import pandas as pd
from models.blum_tx import BlumTx
from models.tg_paws import TgPaws
from models.warpcast import Warpcast
# 读取 Excel 文件
file_path = '端口1(2).xls'
df = pd.read_excel(file_path, "彭雨虹")
if __name__ == '__main__':
# 逐行读取数据
ls = []
for index, row in df.iterrows():
id = row['编号']
ip = row['IP']
port = row['端口']
print(f"{ip}|{port}||||{index + 1}|")