我不能使用ip_file.write("".join(line for line in ip_file if not line.isspace())),因为我得到了错误:UnsupportedOperation我的代码是: with open(ip.strip()+".txt", "a") as ip_file:
for line() in new
我正在做一组例程,这些例程将检查访问者的ip地址和已知的back参与者列表。IF语句总是返回一个fale,即使我将ip设置为一个已知的坏ip。任何帮助都将不胜感激。contents = file($filename);
$newline = ("$line "); //Add a space after each ip//If (int) is in front of $newline & $<e