为此,需要维护一个日志;批量装载和导入程序常常将日志写入一个文件,但是在数据库中需要使用一个表。
For this, you need to keep a log; bulk load and import programs often log to a file, but inside the database you need to use a table.
不过处理程序也很容易写入数据库(XML: SAX: DBI)。
But the handler could just as easily write to a database (XML: : SAX: : DBI).
如果不保存它(如将它写入一个真正的文件,或者使用shelve模块或数据库),则程序结束时,它将消失。
It will be gone when the program finishes if you do not take steps to save it (such as writing it to a real file, or using the shelve module or a database).
应用推荐