我有一段不工作的简单代码,我无法开始弄清楚原因。代码如下:defmyFunction(otherDictionary,mongoDbCollection):forpinotherDictionary:print('hi')fordinmongoDbCollection:print('hello')显然,最终目标不是打印一堆hi's和hello's,而是在循环机制似乎无法正常运行时纯粹出于调试目的而这样做。当我沮丧地调用这个函数时,打印了一个hi,然后是所有的hello,然后是其余的his。或者像这样:hihellohellohellohellohihihihi而不是:hihellohe