B 机器上查询到如下信息: mysql> select count(),rating_score from tmp.task where task_priority = 'normal' and trackingWebsite_id = '7' and date_format(created_at,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d') group by rating_score having count() > 2 order by rating_score desc; +----------+--------------+
| count(*) | rating_score |
+----------+--------------+
| 40 | 300 |
| 30 | 200 |
| 20 | 100 |
| 10 | 50 |
| 5 | 40 |
| 4 | 30 |
| 3 | 0 |
| 2 | -1 |
+----------+--------------+
我如何通过 A 机器上的 python 脚本将 B 机器上的这些查询结果信息(最好能包括查询语句),通过邮件发送出去?
请问有这样的范例吗?