maya cmds pymel 'ESC' 退出 while, for 循环import maya.cmds as cmdscmds.progressWindow(isInterruptable=1)while 1 :print "kill me!"if cmds.progressWindow(query=1, isCancelled=1) :breakcmds.progressWindow(endProgress=1)