摘要: bencoding是BT用来说明与组织数据的格式。BitTorrent-4.1.6\BitTorrent\bencode.py是算法的实现。bencoding相当简单,不过我还是写了一个UnitTest来验证我的理解。 1 import unittest 2 from BitTorrent.bencode import * 3 4 class testBencodeFun(unitte... 阅读全文