If you need to connect from one of your own programs, then you could replace the "MyZODB" example class given above with something that connects to ZEO instead.
如果希望从自己的某个程序连接,可以将上面给出的“MyZODB”示例类替换为某个连接到ZEO的类。
The allocate() method lets you allocate an object with a given lifetime. For example, when no parameters are required
allocate() 方法让您能够分配具有给定生存期的对象。
Read the details of the problem very carefully and make note of any example cases given. Experiment with pencil and paper to get a feel for the ideas behind the problem.
认真阅读题目本身的细节,仔细分析对题目给出的示例,研究题目时使用纸和笔来获得一些关于解题的思路。
应用推荐