修复天气的摄氏度的特殊符号问题

This commit is contained in:
Richard Chien 2017-02-17 08:42:56 +08:00
parent 01be3bce55
commit 49fa1d585d

View File

@ -41,7 +41,7 @@ def weather(args_text, ctx_msg, argv: list = None, allow_interactive=True):
now = data['now']
aqi = data['aqi']['city']
text += '\n\n实时:\n\n%s,气温%s˚C体感温度%s˚C%s%s级,' \
text += '\n\n实时:\n\n%s,气温%s°C体感温度%s°C%s%s级,' \
'能见度%skm空气质量指数%s%sPM2.5%sPM10%s' \
% (now['cond']['txt'], now['tmp'], now['fl'], now['wind']['dir'], now['wind']['sc'], now['vis'],
aqi['aqi'], aqi['qlty'], aqi['pm25'], aqi['pm10'])