我正试图在window.penn中给出一个标题的弹出窗口。但是我没有这样做。有任何帮助或建议吗?
function view() {
window.open(url,"_self");
}
答案 0 :(得分:0)
您可以在打开窗口后更改标题。
#try the code below, it is working.
fname = raw_input("Enter file name: ")
count=0
value = 0
sum=0
fh = open(fname)
for line in fh:
if not line.startswith("X-DSPAM-Confidence:") : continue
pos = line.find(':')
num = float(line[pos+1:])
sum=sum+num
count = count+1
print "Average spam confidence:", sum/count