讓我們比較一下:for path in filePaths : if(self.module!=organizer and self.module!=decoder): # some code with loops elif(self.module==decoder): # some code with loops和這個:if(self.module!=organizer and self.module!=decoder): for path in filePaths : # some code with loopselif(self.module==decoder): for path in filePaths : # some code with loops哪一個是最有效的,為什么?
添加回答
舉報
0/150
提交
取消