结束for循环后执行else for i in range(5): print(i) else: print("打印else") 转载于:https://www.cnblogs.com/tester-go/p/8515728.html