Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
MongoliaNavy committed Dec 13, 2015
1 parent 675058f commit c67d605
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def getweather():
tianqi2 = today.find_all('img')[1].attrs['alt'].encode('UTF-8')
tianqi1 = today.find_all('img')[0].attrs['alt'].encode('UTF-8')
rand = random.randint(0, 8)
tip = soup2.find_all('div', class_='tips')[
rand].find('p').text.encode('UTF-8')
tip = soup2.find_all('div', class_='tips')[rand].find('p').text.encode('UTF-8')
kongqidict = {
"优": "空气很好,可以外出活动,呼吸新鲜空气,拥抱大自然!",
"良": "空气好,可以外出活动,除极少数对污染物特别敏感的人群以外,对公众没有危害!",
Expand Down

0 comments on commit c67d605

Please sign in to comment.