- 把戏 tags:
- python published: true comments: true
import MySQLdb import subprocess from smtplib import * from datetime import date, timedelta
class StatEntry(object):
def __init__(self, name, count):
self.name = name
self.count = count
def __str__(self):
return "%s\t%d" % (self.name, self.count)
def fetchdb(date):
conn = MySQLdb …