with open("top250.txt","w",encoding="gb2312") as f:
for href in child_list:
child_resp = requests.get(href)
child_resp.encoding = "gb2312"
child_cotent = child_resp.text
result3 = obj3.search(child_cotent)
f.write(result3.group("movie")+"n")
f.write(result3.group("download")+"n")
换行是 \n 不是n