我正在使用python bittorent库在python中实现一个基于p2p的分布式模型。所以,基本上我想从一个torrent中获取对等信息/列表。在
from bittorrent import Tracker, Torrent
import torrent
import tracker
f=open("0F605C725275D1045361A17B0222B57232EE77BD.torrent","r+")
tor=Torrent(f.name)
tor.get_peers(peer_list)
所以,我想知道在peer_list中输入数据的可能方式是什么。我的意思是我应该如何以列表的形式输入数据,比如172.16.44.207:22592,115.187.33.86:22592。在
敬请建议。在
目前没有回答
相关问题 更多 >
编程相关推荐