这是您要使用的代码(使用来下载词干包
pip install stem)
from stem import Signalfrom stem.control import Controllerwith Controller.from_port(port = 9051) as controller: controller.authenticate(password='your password set for tor controller port in torrc') print("Success!") controller.signal(Signal.NEWNYM) print("New Tor connection processed")祝你好运,希望能成功。



