常见Python代码记录

读取文件

with open('1.list', "r", encoding='UTF-8') as f:
		line = [i for i in f.readlines()]
		for i in line:
			ip=i.strip('\n')
			scan(ip)
posted @ 2024-02-26 11:08  icssec  阅读(5)  评论(0)    收藏  举报