Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的脚本....
https://imgur.com/a/PFJsN0r
除了在 ip_list 部分中包含 IP 列表之外,有没有办法可以将它指向文本文件,该文本文件是我想要访问的所有 IP 的列表?
将此添加到您的脚本中,请在问题中添加代码而不是快照。
import os import inspect root = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) ip_list = open (root+ "/iplist.txt") for ip in ip_list: "Your Code here"