os._exit(0),退出ArcMap
for element in "Python": if element == "y": pass else: print(element)
3、exit():结束整个程序 >`
3、exit():结束整个程序 >```python for element in "Python": if element == "t": exit() else: print(element)