如何把列表转换为文本文件。

我的问题:如何把列表转换为文本文件,我从网页上爬取了一些内容存到了一个列表里,但是在转换文本文件时,出现了一些问题(看下面的截图)
图片说明
图片说明

我有三个列表分别存放了地点,最高温度和最低温度,想让他在文本中显示“地点+最高温度+最低温度+'\n'”,希望可以得到帮助,以下是我的代码:
import requests
from bs4 import BeautifulSoup
cs=[]
url='http://www.weather.com.cn/textFC/hd.shtml'
r=requests.get(url)
r.encoding='utf-8'
soup=BeautifulSoup(r.text,'html.parser')
conMidtab=soup.find('div',class_='conMidtab')
tables=conMidtab.find_all('table')
for table in tables:
trs=table.find_all('tr')[2:]
for tr in trs:
tds=tr.find_all('td')
city_td=tds[0]
city=list(city_td.stripped_strings)[0]
temp1_td=tds[3]
temp1=list(temp1_td.stripped_strings)[0]
temp2_td=tds[-2]
temp2=list(temp2_td.stripped_strings)[0]
#print('城市:',city,'最高温度:',temp1,'最低温度:',temp2)

https://www.cnblogs.com/Anita9002/p/7977707.html